|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Celal Sen
|
Jul 13, 2011 - 10:56 AM
|
When the page container is docked at top or bottom, the item text inside CextShortcutListWnd class is displayed vertically. If I apply __ESLW_HORIZONTAL style, items appear vertically. I want both the items and their texts appear horizontally when docked at top or bottom. The control shold look like this: Icon ItemText Icon ItemText Icon ItemText Icon ItemText OR Icon Icon Icon Icon ItemText ItemText ItemText ItemText How can I do this?
|
|
Celal Sen
|
Jul 17, 2011 - 3:28 PM
|
OK, yes I use a CExtControlBar and a CExtPageContainer inside it. In fact my problem is not with docking. Let’s forget the previous posts. I’ll try to explain what I want from the beginning. In your PageContainer sample application, there is a ’Horizontal page container’ option under View menu. When it is checked, a pagecontainer is created horizontally on top of the window. And it looks like this, right?:
http://imageshack.us/photo/my-images/641/horizontalpc.jpg/
Icon texts in CextShortcutListWnd are placed vertically, at the right side of their icons, right?
What I’m asking is that how can I put the Icons’ texts below their icons for Horizontal Page Container, like this:
http://img811.imageshack.us/img811/2852/pagecontainerh.jpg
I hope I could make myself clear this time.
|
|
Technical Support
|
Jul 18, 2011 - 12:02 PM
|
Thank you for the second screen shot. But unfortunately, the CExtShortcutListWnd control does not support such horizontal item layout. But you can override the CExtShortcutListWnd::OnShortcutListItemMeasure() , CExtShortcutListWnd::OnShortcutListEraseItem() and CExtShortcutListWnd::OnShortcutListDrawItem() methods to implement a vertical item layout in a horizontally oriented CExtShortcutListWnd control. You can even apply the ready to use code from the original methods.
|
|
Celal Sen
|
Jul 15, 2011 - 8:34 AM
|
|
|
Technical Support
|
Jul 17, 2011 - 10:18 AM
|
The CExtPageContainerWnd control is not dockable. It never changes its layout and orientation. If your project creates a CExtControlBar dockable control bar and some CExtPageContainerWnd inside it, then the control bar only resizes the page container to cover all bar’s client area. Prof-UIS does not change the page container’s layout when a control bar is re-docked. Your project should contain some lines of code which change this layout. You should find these lines of code and remove them.
|
|
Technical Support
|
Jul 15, 2011 - 3:06 AM
|
Could you send us a test (or your real) project which reproduces this behavior?
|
|