Print Page | Close Window

Wrapping CXTPToolbars when undocked

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=4226
Printed Date: 06 July 2025 at 3:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Wrapping CXTPToolbars when undocked
Posted By: wgorman
Subject: Wrapping CXTPToolbars when undocked
Date Posted: 16 May 2006 at 7:37pm
Is there a way to have a CXTPToolbar automatically wrap at a specified length or after a specified CXTPControl on the bar when it is undocked?  I have a CXTPToolbar that wraps appropriately when docked, but when undocked it is too long.  If the user resizes it while undocked it wraps correctly, but I'm trying to figure out how to have it start out wrapped when it is undocked.  I've tried setting certain controls on the toolbar with SetBeginGroup to insert a separator, and while that does cause the floating toobar to be wrapped at the separator when resized, it still doesn't resolve the problem of it being too long when it is first undocked. I also thought that CXTPControl::SetWrap might have something to do with it but that didn't seem to have any effect.  Is there a way to do this?



Replies:
Posted By: wgorman
Date Posted: 25 May 2006 at 2:17pm
Nevermind, I figured it out. It looks like CXTPCommandBar::SetWidth will only affect the width of the toolbar when it is floating so by setting that I was able to get it to wrap and display at the desired size when undocked without affecting the width when docked.



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