This is a simple example on how to dock toolbar.
In this example i will use mdx.dll ktools.dll and bars.mdx that are in mircdir.
code:
dialog toolbar {
title ""
size 0 50 804 12
option pixels
list 1, 42 5 460 8, size
box "" 2,-1 -5 804 8
}
on *:dialog:toolbar:init:*: {
dll mdx.dll SetMircVersion $version
dll mdx.dll MarkDialog $dname
dll mdx.dll SetDialog $dname style <- this will remove dialog titlebar
dll mdx.dll SetBorderStyle 1 windowedge <- this will make dialog listbox flat
dll $aa SetControlMDX $dname 1 ToolBar flat wrap nodivider list arrows > bars.mdx
did -i $dname 1 1 bmpsize 16 16
did -i $dname 1 1 setimage +nhd icon small youriconhere.ico
did -i $dname 1 2 +a 1 $chr(9) Button
}
alias tbar {
$iif(!$dialog(toolbar),dialog -m toolbar toolbar)
dll ktools.dlll DockToolbar $dialog(toolbar).hwnd
}