|
Joined: Jan 2006
Posts: 468
Fjord artisan
|
OP
Fjord artisan
Joined: Jan 2006
Posts: 468 |
Hi, been trying to know if its possible to dock a window to dock a dialog to the right/left side of a window? I can dock to top using windowFX.dll, but what about right/left sides? basically I want to dock a toolbar dialog to the left side of my channel window. DCX is not helping me much... I have seen dialogs docked to the left side of the nicklist before but I don't remember when.. been a while and for some reason I need to make one now
|
|
|
|
Joined: Aug 2005
Posts: 1,052
Hoopy frood
|
Hoopy frood
Joined: Aug 2005
Posts: 1,052 |
Without the use of Dll's why don't you use the X and Y properties of the position of the dialog and -m switch only?
It kinda will be in the perfect position and kinda be docked to mirc window (movable)
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
|
|
|
|
Joined: Jul 2006
Posts: 4,211
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,211 |
What's the problem with dcx ?
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Jan 2006
Posts: 468
Fjord artisan
|
OP
Fjord artisan
Joined: Jan 2006
Posts: 468 |
Without the use of Dll's why don't you use the X and Y properties of the position of the dialog and -m switch only?
It kinda will be in the perfect position and kinda be docked to mirc window (movable) I know I cannot do it without DLLs. What's the problem with dcx ? It will dock the dialog to the top of the window (channel/query) and the dialog will not be embedded (like its done with WindoFX SetChild), Also DCX will NOT dock the dialog to the left/right of the channel/query window, only to the mirc main window.
|
|
|
|
Joined: Jul 2006
Posts: 4,211
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,211 |
It will dock the dialog to the top of the window (channel/query) and the dialog will not be embedded (like its done with WindoFX SetChild), Also DCX will NOT dock the dialog to the left/right of the channel/query window, only to the mirc main window. I'm not sure to understand, i've created a dialog, docked it with /xdock -c, my dialog is docked in a channel window, but i'm not sure what you mean by "to the top".My dialog is docked to the window, and you can move the dialog inside the window channel, that's all.You would like to have the dialog on the left and to be unable to move it ?
Last edited by Wims; 26/07/08 10:55 PM.
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Jan 2006
Posts: 468
Fjord artisan
|
OP
Fjord artisan
Joined: Jan 2006
Posts: 468 |
I'm not sure to understand, i've created a dialog, docked it with /xdock -c, my dialog is docked in a channel window, but i'm not sure what you mean by "to the top".My dialog is docked to the window, and you can move the dialog inside the window channel, that's all.You would like to have the dialog on the left and to be unable to move it ? Bingo. You know, if you use WindowFX.dll, create a padding space, set a parent and and the child will be a dialog, the dialog will totally EMBED and become a part of the window, you cannot move it... I want to do that, but the dialog will be embedded to the "left" or "right" side of the window. Make sense now?
|
|
|
|
Joined: Jul 2006
Posts: 4,211
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,211 |
Yes, i'm actually making a code, you'll have to use cwnd.dll, it might be the same thing as your dll, cwnd.dll have a lot of more feature but the help file is in french... Edit : in fact you will have to play with this : Cwnd.dll 1) open you dialog 2) dock the dialog to the channel window with : //noop $dll(path\cwnd.dll,setParent,$dialog(your_dialog).hwnd $window(#your_channel).hwnd) 3)Use dialog -s to move your dialog where you want (dialog -s dialog X Y -1 -1) 4)Use this : //noop $dll(path\cwnd.dll,remWindowLong,$dialog(Your_dialog).hwnd style WS_DLGFRAME) . I hope this help 
Last edited by Wims; 27/07/08 02:28 AM.
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Jan 2006
Posts: 468
Fjord artisan
|
OP
Fjord artisan
Joined: Jan 2006
Posts: 468 |
Cool! But it docks and not embed, the editbox is not aligned anymore :-O
Besides, the dialog will screw up if you resize the window
Last edited by symphony; 27/07/08 12:18 PM.
|
|
|
|
Joined: Jul 2006
Posts: 4,211
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,211 |
Yes, the dialog isn't embed but i'm sure you can simulate this effect and it's your job to check if the window has been resized (cwnd can do this too).About the editbox problem, which editbox are you talking about ? i've only tried with a simple dialog with one button so i don't know.The dialog shouldn't be changed
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Jul 2006
Posts: 4,211
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,211 |
Also, you could paste here your dialog table in order to let me check what's happening...
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Jan 2006
Posts: 468
Fjord artisan
|
OP
Fjord artisan
Joined: Jan 2006
Posts: 468 |
Its just a basic MDX'ed dialog with vertical toolbar. Nothing much, so you get the idea 
|
|
|
|
Joined: Jul 2006
Posts: 4,211
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,211 |
I get the idea but i haven't your editbox problem, so it's as you want  .Have you tried with simple dialog, without mdx ?
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Jan 2006
Posts: 468
Fjord artisan
|
OP
Fjord artisan
Joined: Jan 2006
Posts: 468 |
Yes, still covers the channel editbox.
|
|
|
|
Joined: Jul 2006
Posts: 4,211
Hoopy frood
|
Hoopy frood
Joined: Jul 2006
Posts: 4,211 |
Ah, i misunderstood what was the problem with the editbox, you mean the mirc editbox. I've seen what the problem now, but i'm not sure what can be done, your dialog is docked on the channel window, as the editbox.I've tried so many workaround but haven't be able to find one.I'm still looking for a way to do this, but if you would like to see the dialog behind the editbox when the dialog is active, i think there no way, or at least i'm not too familiar with all of this
Last edited by Wims; 28/07/08 11:16 PM.
#mircscripting @ irc.swiftirc.net == the best mIRC help channel
|
|
|
|
Joined: Jan 2006
Posts: 468
Fjord artisan
|
OP
Fjord artisan
Joined: Jan 2006
Posts: 468 |
yeah, docking is a brat :<
|
|
|
|
|