Jump to content

nnvi

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by nnvi

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

  2. Hey

     

    I'm trying to get this to work

     

    Hope you understand what i'm trying to do...

     

    Posted Image

     

    dialog n {

    title "New Project"

    size -1 -1 250 133

    option dbu

    list 1, 0 0 61 133, size

    tab "Tab 1", 2, 67 2 127 89

    tab "Tab 2", 3

    tab "Tab 3", 4

    }

     

    on *:dialog:n:init:0:{

    mdx MarkDialog $dname

    mdx SetControlMDX $dname 1 Treeview fullrowselect singleexpand nohscroll showsel > $views.mdx

    did -i $dname 1 1 setitemheight 26

    did -a $dname 1 $chr(160) 1

    did -a $dname 1 $chr(160) 2

    did -a $dname 1 $chr(160) 3

    did -c $dname 1 2

    }

     

    on *:dialog:n:sclick:1:{

    if ($did(1).seltext = 2) did -f n 3

    }

  3. I also have a toolbar that when i open treeview i get this:

    Posted Image

    then when i minimize and then maximize i get this:

    Posted Image

     

    I have the dialog docked using DCX... here some code..

     

    on *:dialog:k_bar:init:0: {
      mdx MarkDialog $dname
      mdx SetFont $dname 4 -10 900 Tahoma bold
      mdx SetControlMDX $dname 4 Toolbar arrows flat nodivider list wrap > $bars
      mdx SetBorderStyle 4
      mdx SetDialog $dname style
      mdx SetDialog $dname bgcolor $rgb(222,220,213)
      mdx SetColor $dname 4 textbg $rgb(222,220,213)
      mdx SetColor $dname 4 background $rgb(222,220,213)
      did -i $dname 4 1 bmpsize 32 32
      did -i k_bar 4 1 setimage icon big $shortfn($scriptdirIco\cone.ico)
      did -i k_bar 4 1 setimage icon big $shortfn($scriptdirIco\discon.ico)
      did -a k_bar 4 2 Connect $chr(9) $+ Connect
    
      did -a k_bar 4 -
    
      update_k
      .timertb_dock 1 0 xdock -m $dialog($dname).hwnd +t
    }
    
    

     

    Its really bugging me! can you help

  4. Nice one Pablo! It now works. I've been trying to add an icon....

     

    alias status {
      xstatusbar -A 1 notheme
      xstatusbar -l 100 200 200 -1
    
      xstatusbar -t 1 + 0 $ip $chr(9) Width100 Tooltip normal style
      xstatusbar -w 1 + 0 $ico4
      xstatusbar -t 2 + 0 Width200 $chr(9) Width200 Tooltip normal style
      xstatusbar -t 3 + 0 Width200 $chr(9) Width200 Tooltip noborder style
      xstatusbar -t 4 + 0 Width Remainder $chr(9) Width Remainder Tooltip popup style
    }
    
    

    With error: D_ERROR dcxLoadIcon (Invalid Flags)

    D_ERROR /xstatusbar -w (Unable To Load Icon)

  5. Hello guys, I'm trying to create a Status bar in DCX, I've been reading the manual online, and i've tried a few thing with no look! Could you guys help me out?

     

    Here's what i've been reading : http://dcx.scriptsdb.org/xstatusbar.htm

     

    And all i have for DCX alias

    alias dcx {
      if ($isid) returnex $dll($scriptdirdcx.dll,$1,$2-)
      else dll " $+ $scriptdirdcx.dll" $1 $2-
    }
    alias xdock {
      if ($isid) returnex $dcx( _xdock, $1 $prop $2- )
      dcx xdock $1-
    }
    

    dont i need to use a alias for xStatusbar ?

     

    Please help lol

     

    :D

×
×
  • Create New...