Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog - check rather than ok executes if statement
#1
Hi,

I created the dialog below based on another example in the forum.
My two questions are:
I would like it to be visible on top all the time within my application - like a dashboard in the corner of the screen
I would like it to act on the user checking any of the boxes without having an OK button - just the actual clicking on the box will cause the "if" statements to execute. In my case, they will be acting to dis+/dis- particular folders of macros (which I know how to do).

If that is possible, I will remove the OK button from the dialog controls.

Thanks!!,
Stuart

Code:
Copy      Help
\Dialog_Editor

str controls = "3 4 5 6"
str c3Mou c4Aut c5Aut c6Aut

c6Aut=1


if(!ShowDialog("" 0 &controls)) ret

if(c3Mou=1) out "1 checked"
if(c4Aut=1) out "2 checked"
if(c5Aut=1) out "3 checked"
if(c6Aut=1) out "4 checked"

;BEGIN DIALOG
;0 "" 0x44 0x0 0 0 133 65 "RadFusion Options"
;1 Button 0x54030001 0x4 38 28 48 14 "OK"
;3 Button 0x54012003 0x0 4 2 60 14 "1"
;4 Button 0x54012003 0x0 64 2 62 14 "2"
;5 Button 0x54012003 0x0 4 14 54 12 "3"
;6 Button 0x54012003 0x0 64 14 58 12 "4"
;END DIALOG
;DIALOG EDITOR: "" 0x2020008 "" ""


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)