Jump to content

Dialog Question


CharmedOne

Recommended Posts

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

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 by Warrior124
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...