Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read Only Enter Scroll Down
#1
okay i have another question

On a Read-Only on a dialog, to get words in it i usually do this
you getwintext
add []
then add the new text
then set it
but when you do this alot, for example in a temp cleaner
it sets alot of stuff in it
but when you do this the scroll bar goes to the top each time you do it

Is there a way in a read only to make the scroll bar always stay down
i dont mean to use MouseWheel(-100) each time because that looks funny

Thanks
#2
getwintext/setwintext is not the best way

Function Dialog62
Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

str controls = "3"
str e3
if(!ShowDialog("Dialog62" &Dialog62 &controls)) ret

;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 223 135 "Dialog"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;3 Edit 0x54230844 0x20000 120 6 96 48 ""
;4 Button 0x54032000 0x0 68 6 48 14 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2030001 "" "" ""

ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 4
,str s
,s=GetTickCount&0xffff ;;random string
,s+"[]"
,int h=id(3 hDlg)
,SendMessage h EM_SETSEL -2 -2
,SendMessage h EM_REPLACESEL 0 s
,case IDOK
,case IDCANCEL
ret 1
#3
Thank you so much

some of my friends made macros that did that
but i couldn't figure it out


Thanks again


Forum Jump:


Users browsing this thread: 1 Guest(s)