|
Pages: [1]
|
 |
|
Author
|
Topic: Disabled buttons? (Read 375 times)
|
|
kpeters
|
Hi ~
is it possible to disable buttons? If not, what is an easy way to convey button states to the user?
TIA, Kai
|
|
|
|
|
Logged
|
|
|
|
|
Sunanda
|
Disable a button by changing its action facet. You could show that by changing the color of the button (or other effects): active: does [print "b1 pressed"] ;; function for active button inactive: none ;; action for diasbled button
view layout [ b1: button "B1" [active] ;; default action facet of active b2: button "b2" [ b1/action: inactive ;; set b1 inactive if pressed b1/effect/3: 0.0.0 ;; change b1's color gradient effect show b1 ;; rerender b1 ] ]
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |