Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check Box
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00581002
Message ID:
00581244
Views:
25
>>BTW, what i mean is that a checkbox should
>>not be use to run a command.
>>
>>IMO, the command button was design to this task.
>>
>>:-)
>
>In this case the checkbox is NOT running anything, it is turning the timer on and off which is exactly what a checkbox is for binary conditions like ON/OFF, T/F, Y/N etc..
>
>Of course a command button could be used as well with code like this;
>
>
>* Button's Refresh
>IF Thisform.Timer.Enabled
>   This.Caption = "Stop Timer"
>ELSE
>   This.Caption = "Start Timer"
>ENDIF
>
>
>
>* Button's click event
>Thisform.Timer.Enabled = NOT Thisform.Timer.Enabled
>This.Refresh()
>
OK, but you dont need to use the command to toggle
on/off, just set the checkbox.style to graphical
to get the look of a command button.
It will stay depressed until the timer was disabled.

I continue to think that in this particular case
(timer run only 1 time) this was an action.
Delayed action, but an action.

:-)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Reply
Map
View

Click here to load this message in the networking platform