CharmedOne Posted November 3, 2010 Report Share Posted November 3, 2010 Some things on dialog editor I have never messed with & when you click check box & add it to the dialog & make it a push button I dont use the same thing for a push button like so? on *:dialog:DIALOGNAME:sclick:11:{ if ($did(11).state == 0) { /disable #yadayada } elseif ($did(11).state == 1) { /enable #yadayada } } Or can I make them work the same way I do standard buttons & also in the properties part after making it a push button what does 3 State mean or do? Link to comment Share on other sites More sharing options...
Guest Travis Posted November 3, 2010 Report Share Posted November 3, 2010 A button check is the same as a regular check. Check box has an On, Off, and Intermediate setting. Link to comment Share on other sites More sharing options...
CharmedOne Posted November 3, 2010 Author Report Share Posted November 3, 2010 what does 3 State mean or do? Link to comment Share on other sites More sharing options...
Warrior124 Posted November 3, 2010 Report Share Posted November 3, 2010 (edited) The 3 state check give 3 states to check instead of just two. Here is an example... dialog Test { title "" size -1 -1 58 22 option dbu check "Push Me", 1, 4 7 50 10, 3state flat push } on *:dialog:test:sclick:1: { if ($did(1).state == 0) echo -a Beginning of state check. elseif ($did(1).state == 1) echo -a Middle of state check. elseif ($did(1).state == 2) echo -a End of state check. } Edited November 3, 2010 by Warrior124 Link to comment Share on other sites More sharing options...
CharmedOne Posted November 3, 2010 Author Report Share Posted November 3, 2010 ty Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now