Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog Edit
#4
it might be a good idea to use option buttons instead of check box.

Code:
Copy      Help
str controls = "4 10 13 14 5 6"
str e4 e10 o13Ena o14Dis o5Ena o6Dis
if(!ShowDialog("Disable_Macros_Folders" &Disable_Macros_Folders &controls)) ret
out e4
out e10

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

;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 213 95 "Disable/Enable"
;1 Button 0x54030001 0x4 160 56 48 14 "OK"
;2 Button 0x54030000 0x4 160 76 48 14 "Cancel"
;3 Static 0x54000000 0x0 10 12 60 8 "Macro or Function:"
;4 Edit 0x54030080 0x200 78 10 90 13 ""
;9 Static 0x54000000 0x0 8 62 24 8 "Folder:"
;10 Edit 0x54030080 0x200 42 58 96 14 ""
;13 Button 0x54032009 0x0 42 30 42 12 "Enable"
;14 Button 0x54002009 0x0 94 30 42 12 "Disable"
;5 Button 0x54032009 0x0 44 76 42 13 "Enable"
;6 Button 0x54002009 0x0 94 76 44 13 "Disable"
;8 Button 0x54020007 0x0 2 50 146 42 "Name"
;7 Button 0x54020007 0x0 2 0 180 46 "Name"
;END DIALOG
;DIALOG EDITOR: "" 0x202000B "" ""


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 IDOK DT_Ok hDlg
,case IDCANCEL DT_Cancel hDlg
ret 1
pi


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)