12-20-2007, 03:35 AM
Inside the dialog, click on styles and then WS_EX_TOPMOST, and like QM EXPERT said, use a smart dialog, then you can set up your cases so that you dialog will react as soon as one of the boxes are checked rather then when you click OK. Heres an example.
EDIT** Sorry, didn't see an example already supplied.
Function ( Stupomer ) Trigger ( F3 )
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
;BEGIN DIALOG
;0 "" 0x90C80044 0x108 0 0 145 116 "Dialog"
;1 Button 0x54030001 0x4 8 86 48 14 "Close"
;3 Button 0x54012003 0x0 8 6 48 12 "1"
;4 Button 0x54012003 0x0 8 26 48 12 "2"
;5 Button 0x54012003 0x0 8 46 48 12 "3"
;6 Button 0x54012003 0x0 8 66 48 12 "4"
;END DIALOG
;DIALOG EDITOR: "" 0x2020102 "" "" ""
str controls = "3 4 5 6"
str c3 c4 c5 c6
if(!ShowDialog("Stupomer" &Stupomer &controls)) ret
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 3
,,out "1"
,case 4
,,out "2"
,case 5
,,out "3"
,case 6
,,out "4"
,case IDOK
,case IDCANCEL
ret 1
Taking on Quick Macros one day at a time