Skip to content
General IRCd

Dialog Question

A TG007 community discussion started by CharmedOne.

Discussion 5 posts
Page 1 of 1
Open
Topic #14766 · 5 published posts · 2,789 views

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?

A button check is the same as a regular check.

 

Check box has an On, Off, and Intermediate setting.

what does 3 State mean or do?

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 Nov 3, 2010 5:23 AM by Warrior124

ty Posted Image