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 icon1.ico
did -i $dname 1 1 setimage icon small icon2.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
;Checks if %click is the same as the selected item
if (%click == 2) {
;my command
}
elseif (%click == 3) {
;my coomand
}
}
the switchbar doesnt show any one can help
thnx