07-09-2018, 04:00 AM
I wonder whether - and if yes how - it is possible to start the folllowing dialog, with the mouse on combobox pushbutton. Thanks for any advice.
Function Dialog52
Function Dialog52
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog"
;5 ComboBox 0x54230242 0x0 11 54 96 212 ""
;4 Edit 0x54030080 0x200 10 33 96 12 ""
;3 Button 0x54032000 0x0 10 9 48 14 "Button"
;1 Button 0x54030000 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040700 "*" "" "" ""
str controls = "4 5"
str e4 cb5
cb5="1[]2[]a[]c"
if(!ShowDialog(dd &sub.DlgProc &controls)) ret
#sub DlgProc
function# hDlg message wParam lParam
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1