Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog Edit
#2
Heres my code. Maybe this will help give a better idea of what I want.


Dis_Enable Options:
Code:
Copy      Help
str controls = "4 5 6 10 11 12"
str e4 c5Ena c6Dis e10 c11Ena c12Dis
if(!ShowDialog("Disable_Macros_Folders" &Disable_Macros_Folders &controls)) ret




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

;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 215 98 "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 ""
;5 Button 0x54012003 0x0 78 28 36 13 "Enable"
;6 Button 0x54012003 0x0 124 28 38 13 "Disable"
;9 Static 0x54000000 0x0 8 62 24 8 "Folder:"
;10 Edit 0x54030080 0x200 42 58 96 14 ""
;11 Button 0x54012003 0x0 42 76 38 13 "Enable"
;12 Button 0x54012003 0x0 90 76 38 13 "Disable"
;8 Button 0x54020007 0x0 2 50 146 42 "Name"
;7 Button 0x54020007 0x0 2 0 180 46 "Name"
;END DIALOG
;DIALOG EDITOR: "" 0x2010808 "" ""


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


I hope this helps understand what i'm wanting... For this to be able to disable and enable macros, functions, or folders that I type into the edit box. I just can't seem to remember how to grab that information. Any help would be great. Thanks


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)