I use a timer to hold my windows in the toolbar because I dont like to use dlls.
I have to windows @usage and @lag and use this code to find the toolbar position.
alias -l usagepos return $calc($window(-2).x + $window(-2).w - 270) $calc($window(-2).y + 50) 160 20
alias -l lagpos return $calc($window(-2).x + $window(-2).w - 100) $calc($window(-2).y + 50) 70 20
then I run a timered loop
alias winpos {
if (!$appactive) {
if ($window(@usage).ontop) {
window -c @usage
window -pdkh +dL @Usage $usagepos
drawfill -nr @usage $rgb(face) $rgb(face) 0 0
if ($server) drawtext -n @usage 4 tahoma 10 3 3 Usage: $usage
drawtext @usage
}
if ($window(@lag).ontop) {
window -ph @temp
if ($server) drawcopy @lag 0 0 70 20 @temp 0 0
window -c @lag
window -pdkh +dL @Lag $lagpos
drawfill -nr @lag $rgb(face) $rgb(face) 0 0
if ($server) drawcopy -n @temp 0 0 70 20 @lag 0 0
drawtext @lag
window -c @temp
}
}
else {
window -o @usage
window -o @lag
}
if ($window(@usage)) window @usage $usagepos
if ($window(@lag)) window @lag $lagpos
.timer.winpos -mo 1 200 winpos
Tada docked with out any dlls I will admit it a little slow when resizing and sometime likes to stay ontop when mirc isn't selected. But it does the job.