Hi, I've been reading a Toolbar Tutorial, And am already lost.
Download it here:
http://www.mircscripts.org/download.php?id=2058&type=1But Yeah, The Icons "teal0" and "teal1" show up. But They open it's own window. I want them to take the place of the 1st two icons on the mIRC toolbar, Anyone know?
dialog example {
title "Example"
size -1 -1 1000 18
option dbu
list 1, 1 2 1000 14, size
}
on *:dialog:example:init:0:{
dll mdx.dll SetMircVersion $version
dll mdx.dll MarkDialog $dname
dll mdx.dll SetControlMDX $dname 1 ToolBar list arrows flat wrap nodivider > bars.mdx
dll mdx.dll SetDialog $dname style
dll mdx.dll SetBorderStyle 1
did -i $dname 1 1 bmpsize 16 16
did -i $dname 1 1 setimage icon small teal0.ico
did -i $dname 1 1 setimage icon small teal1.ico
did -a $dname 1 +a 1 Hello $chr(9) Tooltip!
did -a $dname 1 +a 2 Goodbye $chr(9) Tooltip!
dll ktools.dll DockToolbar $dialog($dname).hwnd
}
on *:dialog:example:sclick:1:{
var %click $did($dname,1).sel
if (%click == 2) {
;command here
}
elseif (%click == 3) {
;Command
}
}