Jump to content

Dcx Sclick


nnvi

Recommended Posts

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

Posted Image

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..

Posted Image

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

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

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...