mIRC Homepage
Posted By: saragani Yet another dialog question - 22/07/04 12:27 PM
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.
Posted By: saragani Re: Yet another dialog question - 22/07/04 12:32 PM
I mean something like this:


Thank you wink
Posted By: tidy_trax Re: Yet another dialog question - 22/07/04 12:33 PM
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.
Posted By: saragani Re: Yet another dialog question - 22/07/04 12:55 PM
No way of doing it without MDX?
Posted By: tidy_trax Re: Yet another dialog question - 22/07/04 01:00 PM
You can't use a treeview without MDX.
Posted By: saragani Re: Yet another dialog question - 23/07/04 07:48 AM
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.
© mIRC Discussion Forums