Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog with Combolist
#4
Websites2
Code:
Copy      Help
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str sb_text

;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 223 135 "Website's"
;1 Button 0x54030001 0x4 48 114 48 14 "OK"
;2 Button 0x54030000 0x4 120 114 48 14 "Cancel"
;4 ComboBox 0x54230243 0x0 58 52 96 213 ""
;3 Button 0x54020007 0x0 52 6 108 100 "Website's"
;END DIALOG
;DIALOG EDITOR: "" 0x202000A "" ""


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 CBN_SELENDOK<<16|4
,,CB_SelectedItem(id(4 hDlg) sb_text)
,,sel CB_SelectedItem(lParam)
,,,case 0;; google
,,,,out sb_text
,,,case 1;; UWE
,,,,out sb_text
,,,case 2;; IE
,,,,out sb_text
,,,,
,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)