Print Page | Close Window

Right to Left DockingPane operation

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=6837
Printed Date: 28 June 2024 at 2:37am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Right to Left DockingPane operation
Posted By: markh
Subject: Right to Left DockingPane operation
Date Posted: 11 April 2007 at 8:33am
 
I am having trouble making the DockingPane control work Right to Left. I have set my frame to RTL. However, DockingPane only partially seems to pick up on this. The actual location of the panes seems to get swapped. For example, a right-hand pane is now displayed on the left-hand side.
 
However, the title bar of the pane and the close/pin icons are still LTR. Also when trying to resize a pinned pane, it seems to work as if you were sizing it from the opposite side.
 
The other controls all seem to have a RightToLeft property. However, DockingPane doesn't appear to. Is there any way to get the correct behaviour?
 
Thanks...
Mark
 



Replies:
Posted By: Oleg
Date Posted: 11 April 2007 at 8:53am
Hello,
 
Do you set RightToLeft property before you create panes?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: markh
Date Posted: 11 April 2007 at 10:29am

Hello Oleg

I can't see a RightToLeft property for the DockingPane control.
 
If you mean setting the frame to RTL, this is done prior to the panes being created by assigning WS_EX_LAYOUTRTL | WS_EX_NOINHERITLAYOUT to the extended style of the frame window.
 
Any ideas??


Posted By: Oleg
Date Posted: 11 April 2007 at 10:58am
Hi,
 
Try without WS_EX_NOINHERITLAYOUT.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: markh
Date Posted: 11 April 2007 at 11:38am
 
I can't really use it without WS_EX_NOINHERITLAYOUT since this messes up all sorts of other things in my application's child windows which then all take on this style, such as reversing the coordinate system etc. In fact I can't actually try it at the moment since it causes a crash (probably due to the coordinate system flipping).
 
Is there any reason for DockingPane not to have a RightToLeft property like most of the other controls (e.g. CommandBars etc.) ?
 
 


Posted By: markh
Date Posted: 11 April 2007 at 11:47am
 
Actually I have now got this working by setting the WS_EX_NOINHERITLAYOUT style at the MDI client window level rather than the frame window level.
 
I still think it would be nicer if there was an independent RightToLeft property for the DockingPane control.
 
Thanks
Mark
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net