Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog
#1
I need Just a little refreshment on this because its been a while sence ive done any of this


\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

BEGIN DIALOG
0 "" 0x90C80A44 0x100 0 0 223 135 "Dialog"
3 Button 0x54032000 0x0 0 2 48 14 "ddd"
4 Button 0x54032000 0x0 0 28 48 14 "fff"
END DIALOG
DIALOG EDITOR: "" 0x202000B "" ""

how would i get " ddd , fff " when the dialog comes up and i click on it what i put in the
other function wont work say i want ddd to have OnScreenDisplay and fff to have OnScreenDisplay how would i put that in
#2

I'm not sure exactly what your asking, but use a smart dialog and then you can adjust the role you want each button to play by using case.


Example:

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

;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 Button 0x54032000 0x0 40 40 48 14 "OSD"
;4 Button 0x54032000 0x0 110 40 48 14 "OSD2"
;END DIALOG
;DIALOG EDITOR: "" 0x2020102 "" "" ""


if(!ShowDialog("Dialog55" &Dialog55)) ret


ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 3
,,;;Edit what you want it to do
,case 4
,,;;Edit what you want it to do
,case IDOK
,case IDCANCEL
ret 1
Taking on Quick Macros one day at a time
#3
thank you thats exactly what i was asking
#4
Well shit ok let me show you an example

ret
messages2
sel wParam
case IDOK
case IDCANCEL
ret 1
goto messages3
messages3
sel wParam
case 3
,,Function15
case 4
,,Function14
case IDOK
case IDCANCEL
ret 2

in function 15 and 14 has auto text like
key "hello"
and
key "hello"
i want it to where when i click on the button case 3 or case 4 it would type the information down to what screen i have opened
#5

Inside each function, insert window names for each designated window.
Taking on Quick Macros one day at a time


Forum Jump:


Users browsing this thread: 1 Guest(s)