Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Horizontal scroll of a read-only edit field to its end
#1
Dear Gintaras,

I need some advice on th following issue. Suppose in a dialog you have the read-only following edit field :

Function SearchFolInDirDlg
Code:
Copy      Help
;6 Edit 0x54830880 0x200 2 280 400 18 ""

If the information to be stored in this field is longer than its width and thus right-end iondormation should be scrolled to be diaplayed, what is the statemnt that can be used to scroll the field to its end. I understand that alternatively you may key CTRL+End but I would prefer to click on a button to scroll this field to its end.

Thanks in advance
#2
Function Dialog116
Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

str controls = "6"
str e6
e6="aaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbb ccccccccccccccccccc dddddddddddddddd"
if(!ShowDialog("Dialog116" &Dialog116 &controls)) ret

;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 223 135 "Dialog"
;3 Button 0x54032000 0x0 2 4 48 14 "Scroll"
;6 Edit 0x54830880 0x200 2 20 200 18 ""
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2030406 "*" "" "" ""

ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 3
,int he=id(6 hDlg)
,SetFocus he
,SendMessage he EM_SETSEL 1000000000 1000000000
ret 1
#3
MAny thanks indeed, Regards, Simos


Forum Jump:


Users browsing this thread: 1 Guest(s)