Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Smart Dialog
#8
OK, i made a quick idea of what i wanted:

Macro "Website Starter"

Code:
Copy      Help
str controls = "3"
str cb3
cb3="www.quickmacros.com[]www.google.com[]www.yahoo.com"
if(!ShowDialog("Websites" &Websites &controls)) ret


then Function/Dialog "Websites"

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

;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 197 107 "Form"
;1 Button 0x54030001 0x4 30 76 48 14 "OK"
;2 Button 0x54030000 0x4 108 76 48 14 "Cancel"
;3 ComboBox 0x54230243 0x0 16 22 96 213 ""
;6 Static 0x54000000 0x0 126 18 56 30 "Put Current Window Open Here"
;5 Button 0x54020007 0x0 120 2 70 54 ""
;4 Button 0x54020007 0x0 8 2 108 54 "Websites"
;END DIALOG
;DIALOG EDITOR: "" 0x2020005 "" ""


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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)