` Button as toggle switch (Richard Rose ) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Button as toggle switch
2001-06-06 -- Richard Rose
 
The code for a toggle button if it helps anyone IF toggle toggle = 0 ?Region{Prop:Bevel,1} = 1 ?Region{Prop:Bevel,2} = 1 RegionMessage = 'Up State' Else toggle = 1 ?Region{Prop:Bevel,1} = -1 ?Region{Prop:Bevel,2} = -1 ToggleMessage = 'Down State' END Graig Ransom adds: According to the on-line help, you use a CHECKbox control with an ICON() attribute for this! (Beats me why it isn't a BUTTTON with a TOGGLE attribute.)


Today is April 25, 2024, 6:48 am
This article has been viewed 35108 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: