mIRC Home    About    Download    Register    News    Help

Print Thread
Yet another dialog question #91419 22/07/04 12:27 PM
Joined: Feb 2003
Posts: 282
S
saragani Offline OP
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Feb 2003
Posts: 282
I don't know how exactly it is called.

I want to make my dialog based on a side list instead of tabs. The dialog is used to configure a script, and I would like to have the side list with + and - where you click the + eo expend (I mean just like in the Options of mIRC).

How to I do that?

A simple example will help

Thanks.

Re: Yet another dialog question #91420 22/07/04 12:32 PM
Joined: Feb 2003
Posts: 282
S
saragani Offline OP
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Feb 2003
Posts: 282
I mean something like this:


Thank you wink

Re: Yet another dialog question #91421 22/07/04 12:33 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
You need to use mdx.dll for the treeview, and tabs are still used but the top part of the tabs are outside the top of the dialog, then you use the "treeview" to set focus (/did -f) on a tab.


New username: hixxy
Re: Yet another dialog question #91422 22/07/04 12:55 PM
Joined: Feb 2003
Posts: 282
S
saragani Offline OP
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Feb 2003
Posts: 282
No way of doing it without MDX?

Re: Yet another dialog question #91423 22/07/04 01:00 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
You can't use a treeview without MDX.


New username: hixxy
Re: Yet another dialog question #91424 23/07/04 07:48 AM
Joined: Feb 2003
Posts: 282
S
saragani Offline OP
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Feb 2003
Posts: 282
How do I use tabs with this thing (So I will always have a focus on the list)??

This is that I have:
Code:

alias mdx_fullpath { return $+(",D:\Program Files\mIRC\\mdx.dll,") }

alias mdx { dll $mdx_fullpath $1- }

alias mdxinit {
  dll $mdx_fullpath SetMircVersion $version
  dll $mdx_fullpath MarkDialog $dname
}

dialog diag {
  option dbu
  size -1 -1 255 130
  title "Dialog"
  list 1,-1 -1 69 98,extsel size
}
on *:dialog:diag:init:*:{
  mdxinit
  mdx SetControlMDX $dname 1 TreeView haslines linesatroot hasbuttons > D:\Program Files\mIRC\\views.mdx
  did -f $dname 1
  did -a $dname 1   Misc
  did -i $dname 1 1 cb root  last 1
  did -a $dname 1   Timing
  did -i $dname 1 1 cb root 1
  did -a $dname 1   Email
  did -i $dname 1 1 cb root  last 1
  did -a $dname 1   Email Functions
  did -i $dname 1 1 cb root 1
  did -a $dname 1   Colors
  did -i $dname 1 1 cb root  last 1
  did -a $dname 1   Bots
  did -a $dname 1   Status Win
  did -i $dname 1 1 cb root 1
  did -a $dname 1   Filters
  did -a $dname 1   Sounds
  did -a $dname 1   Windows
  did -a $dname 1   Web

}



Thank you.