mIRC Home    About    Download    Register    News    Help

Print Thread
#202591 25/07/08 08:05 PM
Joined: Jan 2006
Posts: 468
Fjord artisan
OP Offline
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 confused

symphony #202613 26/07/08 03:15 PM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
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)


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
symphony #202614 26/07/08 03:29 PM
Joined: Jul 2006
Posts: 4,172
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,172
What's the problem with dcx ?


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
symphony #202617 26/07/08 04:42 PM
Joined: Jan 2006
Posts: 468
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2006
Posts: 468
Originally Posted By: Lpfix5
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.

Originally Posted By: Wims
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.

symphony #202634 26/07/08 10:54 PM
Joined: Jul 2006
Posts: 4,172
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,172
Quote:
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
Wims #202645 27/07/08 12:49 AM
Joined: Jan 2006
Posts: 468
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2006
Posts: 468
Originally Posted By: Wims
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?

symphony #202646 27/07/08 01:35 AM
Joined: Jul 2006
Posts: 4,172
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,172
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 smile




Last edited by Wims; 27/07/08 02:28 AM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #202649 27/07/08 11:47 AM
Joined: Jan 2006
Posts: 468
Fjord artisan
OP Offline
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.
symphony #202653 27/07/08 01:26 PM
Joined: Jul 2006
Posts: 4,172
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,172
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
symphony #202659 27/07/08 04:04 PM
Joined: Jul 2006
Posts: 4,172
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,172
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
Wims #202696 28/07/08 10:39 AM
Joined: Jan 2006
Posts: 468
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2006
Posts: 468
Its just a basic MDX'ed dialog with vertical toolbar. Nothing much, so you get the idea smile

symphony #202701 28/07/08 01:41 PM
Joined: Jul 2006
Posts: 4,172
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,172
I get the idea but i haven't your editbox problem, so it's as you want wink.Have you tried with simple dialog, without mdx ?


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #202715 28/07/08 07:15 PM
Joined: Jan 2006
Posts: 468
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2006
Posts: 468
Yes, still covers the channel editbox.

Wims #202717 28/07/08 09:31 PM
Joined: Jul 2006
Posts: 4,172
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,172
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 smile


Last edited by Wims; 28/07/08 11:16 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #202732 29/07/08 04:21 AM
Joined: Jan 2006
Posts: 468
Fjord artisan
OP Offline
Fjord artisan
Joined: Jan 2006
Posts: 468
yeah, docking is a brat :<


Link Copied to Clipboard