mIRC Home    About    Download    Register    News    Help

Print Thread
#34272 05/07/03 01:53 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
does anyone know how to either:
fix a dialog in place so it cant be moved(for my toolbar).
or remove the titlebar from the dialog so it fits better(in my toolbar)
thanx in advance grin


new username: tidy_trax
#34273 05/07/03 02:04 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
The second (and possibly the first) can be done with MDX.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#34274 05/07/03 02:23 PM
Joined: May 2003
Posts: 215
Fjord artisan
Offline
Fjord artisan
Joined: May 2003
Posts: 215
1) /dll dmu.dll BarAdd toolbar > $dialog(blah) I think, I haven't used DMU for awhile.
2) /dll mdx.dll SetDialog $dialog(blah) style

kTools.dll also has a function to dock to the toolbar, as well as DEMID.dll. Also, make sure that you use "0 0" for the x and y in the dialog size. Otherwise it won't place the dialog correctly


- Jason
#34275 05/07/03 02:50 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
its docked using ktools.dll but it moves around frown


new username: tidy_trax
#34276 05/07/03 03:27 PM
Joined: Dec 2002
Posts: 29
R
Ameglian cow
Offline
Ameglian cow
R
Joined: Dec 2002
Posts: 29
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
}

#34277 05/07/03 03:31 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
thankyou that works just how i wanted grin , i never thought of that but that code does both things i want, because with no titlebar it cant be moved. thanx grin


new username: tidy_trax
#34278 05/07/03 03:34 PM
Joined: Dec 2002
Posts: 29
R
Ameglian cow
Offline
Ameglian cow
R
Joined: Dec 2002
Posts: 29
You are welcome


Link Copied to Clipboard