mIRC Homepage
Posted By: raZOR small dialog help - 16/09/06 10:16 PM
not to post whole design/code

problem is in 2 controls

edit control (ID 2)
button control (ID 5)

thing i want is that while edit control (2) is empty
that button is disabled, and vice versa.

but this code doesnt work for me smirk

on *:dialog:dialog_name:edit:2:{
if ($did == $null) { did -b $dname 5 }
else { did -e $dname 5 }
}
Posted By: hixxy Re: small dialog help - 16/09/06 10:17 PM
Code:
on *:dialog:dialog_name:edit:2:{
  if ($did[color:red]($did)[/color] == $null) { did -b $dname 5 }
  else { did -e $dname 5 }
} 
Posted By: raZOR Re: small dialog help - 16/09/06 10:38 PM
thank you very much ^^

just question, why does it require 2 $dids ?

isnt 1 enough inside EVENT ID (for that ID) ?
Posted By: hixxy Re: small dialog help - 16/09/06 10:44 PM
$did is the ID that triggered the event. $did($did) gets the text of the id that triggered the event (it's equivalent to $did($did).text or $did(2).text).
Posted By: raZOR Re: small dialog help - 16/09/06 10:53 PM
thanks again =)
© mIRC Discussion Forums