nnvi Posted July 18, 2011 Report Share Posted July 18, 2011 Need some more DCX Help (The DCX Forum is dead!!) I'm trying to get multi sclick's to work in the toolbar control! Heres some code... on *:dialog:ny:init:0:{ dcx Mark $dname cb_n xdialog -b $dname +ty xdialog -c $dname 1 toolbar 0 0 0 0 top list flat nodivider xdid -l $dname 1 32 xdid -w $dname 1 +ndh 10 $mircexe xdid -w $dname 1 +ndh 11 $mircexe xdid -a $dname 1 1 +la 0 1 $rgb(0,0,0) General xdid -a $dname 1 2 +la 0 2 $rgb(0,0,0) settings } alias cb_n { if $3 == 1 { if $2 == sclick { did -f ny 3 } elseif $4 == 1 { did -f ny 4 } } } No luck with that, i've tried loads of ways! Im also having problems with the Toolbar, for some reason the items i add to the toolbar ain't vertical Heres the toolbar positioned to the left of the dialog and heres the code.. on *:dialog:ny:init:0:{ dcx Mark $dname cb_n xdialog -b $dname +ty xdialog -c $dname 1 toolbar 0 0 0 0 left list flat nodivider xdid -l $dname 1 32 xdid -w $dname 1 +ndh 10 $mircexe xdid -w $dname 1 +ndh 11 $mircexe xdid -a $dname 1 1 +la 0 1 $rgb(0,0,0) General xdid -a $dname 1 2 +la 0 2 $rgb(0,0,0) settings } Now heres the toolbar positioned at the top of the dialog.. and some code.. on *:dialog:ny:init:0:{ dcx Mark $dname cb_n xdialog -b $dname +ty xdialog -c $dname 1 toolbar 0 0 0 0 top list flat nodivider xdid -l $dname 1 32 xdid -w $dname 1 +ndh 10 $mircexe xdid -w $dname 1 +ndh 11 $mircexe xdid -a $dname 1 1 +la 0 1 $rgb(0,0,0) General xdid -a $dname 1 2 +la 0 2 $rgb(0,0,0) settings } Hope you can help!! Link to comment Share on other sites More sharing options...
err0r Posted July 18, 2011 Report Share Posted July 18, 2011 after you $2 == sclick $3 is the tool bar id of 1 $4 == 1 is your first item $4 == 2 is your second item when you click on the first one your output would be ny sclick 1 1 second would be ny sclick 1 2 and so on you can use echo -a $1- in your alias to see everything that happens through the mark alias <dialogid> <action> <id> <subid> Link to comment Share on other sites More sharing options...
nnvi Posted July 19, 2011 Author Report Share Posted July 19, 2011 Not sure i'm with you err0r this is what i got... alias cb_n { if $3 == 1 { if $2 == sclick { did -f ny 3 } elseif $3 == 2 { did -f ny 4 } } } Link to comment Share on other sites More sharing options...
err0r Posted July 19, 2011 Report Share Posted July 19, 2011 alias cb_n { if ($2 == sclick) && ($3 == 1) { if ($4 == 1) { did -f ny 3 } if ($4 == 2) { did -f ny 4 } } } Link to comment Share on other sites More sharing options...
nnvi Posted July 21, 2011 Author Report Share Posted July 21, 2011 cheers err0r 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