Print Page | Close Window

Trying to set the width of a floating toolbar

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=11242
Printed Date: 07 October 2024 at 6:17pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Trying to set the width of a floating toolbar
Posted By: strider
Subject: Trying to set the width of a floating toolbar
Date Posted: 27 June 2008 at 3:11pm

I have a standard toolbar with 4 custom controls on it.  I would like to have the toolbar default to floating in a vertical pattern.  I can get the toolbar to default to floating by using the DockToolBar command.  Then I can manually resize the floating toll bar to a vertical position where the 4 controls are stacked on top of each other.  However, I can't seem to progromatically do the toolbar resize.  Setting the width does not. 

Any ideas?


-------------
ActiveX 13.2.1

Strider



Replies:
Posted By: strider
Date Posted: 27 June 2008 at 3:23pm

I think I figured it out.  I was using the width value calculated from the GetWindowRect units.  The width units are much smaller.  I simply needed to use the proper value to get the width to take effect.

.width works like a charm!


-------------
ActiveX 13.2.1

Strider



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