mIRC Home    About    Download    Register    News    Help

Print Thread
enabled/disabled #57858 27/10/03 01:53 AM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
yea i know been asking lots of q?s ;p

well to the point how can i when i click on a radio in a dialog make a section be disabled/disabled....? confused


Need amazing web design for low price: http://www.matrixn3t.net
Re: enabled/disabled #57859 27/10/03 02:01 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Code:
on *:DIALOG:dname:sclick:id1,id2:{
  if ( $did(id1).state ) {
    did -e $dname id3,id4
  }
  else {
    did -b $dname id3,id4
  }
}

id1 = "on" radio button
id2 = other radio button
id3,id4 = id's of controls to be enabled/disabled

Re: enabled/disabled #57860 27/10/03 02:03 AM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
thx


Need amazing web design for low price: http://www.matrixn3t.net
Re: enabled/disabled #57861 27/10/03 03:32 PM
Joined: Feb 2003
Posts: 810
C
cold Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Also, be familiar with $iif(), it's usefully applicable in this case (instead of if+else).


* cold edits his posts 24/7