11-24-2007, 04:47 AM
Not sure if i know exactly what you want but ill give it a try, button on a dialog tht sticks down and changes text once its down?
try this
Function: Dialog2
Give it a trigger i already have the code pasted in there to show the dialog hope this works
try this
Function: Dialog2
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 135 66 "Test"
;1 Button 0x54030001 0x4 18 44 48 14 "OK"
;2 Button 0x54030000 0x4 76 44 48 14 "Cancel"
;3 Button 0x54013003 0x0 46 14 48 14 "START"
;END DIALOG
;DIALOG EDITOR: "" 0x202000B "" ""
str controls = "3"
str c3STA
if(!ShowDialog("Dialog2" &Dialog2 &controls)) ret
ret
;messages
if(message=WM_INITDIALOG) DT_Init(hDlg lParam)
;int param=DT_GetParam(hDlg)
sel message
,case WM_INITDIALOG
,ret 1
,case WM_DESTROY DT_DeleteData(hDlg)
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 3
,,if(but(lParam))
,,,_s="STOP"
,,else
,,,_s="START"
,,_s.setwintext(lParam)
,case IDOK DT_Ok hDlg
,case IDCANCEL DT_Cancel hDlg
ret 1Give it a trigger i already have the code pasted in there to show the dialog hope this works
