Skip to content
General IRCd

Dcx Sclick

A TG007 community discussion started by nnvi.

Discussion 5 posts
Page 1 of 1
Open
Topic #15170 · 5 published posts · 2,267 views

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

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>

Edited Jul 18, 2011 11:11 PM by err0r

Get information about ircWx here

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
    }
  }
}
alias cb_n {

if ($2 == sclick) && ($3 == 1) {

if ($4 == 1) { did -f ny 3 }

if ($4 == 2) { did -f ny 4 }

}

}
Edited Jul 19, 2011 6:55 PM by err0r

Get information about ircWx here

cheers err0r