mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2003
Posts: 426
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Apr 2003
Posts: 426
I'm having some issues in trying to create a pretty simple (in my opinion) listview dialog box that has some headers in it along these lines:

Code:
Nick            Ident            Address


Under these headers would obviously be placed the appropriate data.

However, I've had sweet F*** all luck in trying to do so.

This is the code I've used. If anyone knows why its not working, please point it out to me.

Code:
dialog clones {
  title "Clones - $shortver"
  size -1 -1 190 111
  option dbu
  box "Clones", 1, 5 5 180 100
  list 2, 10 15 120 85, size
  list 30, 10 15 120 85, size hide
  button "OK", 3, 140 15 37 12, ok
}

alias clone { dialog -m cl clones }

on *:dialog:cl:init:*:{
  mdx SetMircVersion $version
  mdx MarkDialog cl $dialog(cl).hwnd
  mdx SetControlMDX cl 2 ListView report single > $views
  mdx SetControlMDX $dname 30 ListView report single > $cgen
  did -i $dname 2 1 headerdims 20:1 20:2 80:3
  did -i $dname 2 1 headertext +l 0 Nick	+l 0 Ident	+l 0 Host
}


$mdx, $views, $cgen all point to the appropriate locations.

Joined: Jul 2003
Posts: 733
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jul 2003
Posts: 733
u have windows xp?

Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
on *:dialog:cl:init:*:{
mdx SetMircVersion $version
mdx MarkDialog $dname
mdx SetControlMDX $dname 2 listview report single > $views
mdx SetControlMDX $dname 30 listview report single > $views
did -i $dname 2 1 headerdims 20 20 80
did -i $dname 2 1 headertext nick $chr(9) ident $chr(9) host
}
you just use MarkDialog <name>
ctl_gen.mdx isn't for listviews..
you use $chr(9) for a new header
you just use <size> <size> <size> for headerdims
then use: did -a cl 2 text under header 1 $chr(9) text under header 2 $chr(9) text under header 3
eg: did -a cl 2 $nick $chr(9) $address($nick,1) $chr(9) $left($nick($chan,$nick).pnick,1)

Joined: Apr 2003
Posts: 426
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Apr 2003
Posts: 426
*EDIT*

Ok, I've got it working using a tutorial I found on mircscripts.org

It appears my alias to the MDX files and dll needed quotations around the path.

Last edited by neophyte; 04/01/04 02:06 AM.

Link Copied to Clipboard