` Printed Icetips Article

Icetips Article



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.)



Printed November 21, 2024, 6:51 am
This article has been viewed/printed 35215 times.