Print Page | Close Window

Control Width

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=1682
Printed Date: 04 May 2024 at 10:16am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Control Width
Posted By: ianp
Subject: Control Width
Date Posted: 19 January 2005 at 7:15am

I have a commandbar with two tools on it, a Popup control and a Close button created using the following code:

 

cBar.EnableDocking (xtpFlagStretched)
 Set popCtrl = .Controls.Add(xtpControlPopup, 1, "My Tasks")
 popCtrl.Style = xtpButtonCaption
 Set btnCtrl = .Controls.Add(xtpControlButton, 2, "x")
 btnCtrl.Style = xtpButtonCaption
 btnCtrl.Flags = xtpFlagRightAlign

This code creates a commandbar with the Popup control text, then the popup button on the left and the close button control on the right of the commandbar. The two controls are seperated by the space based on the width of the commandbar

Is there anyway to stretch the popup control so that it's popup button appears on the right, next to the close button, and its text still appears aligned left.




Replies:
Posted By: Oleg
Date Posted: 20 January 2005 at 1:49am
In Next version xtpFlagControlStretched will be available.

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


Posted By: ianp
Date Posted: 21 January 2005 at 11:12am

thanks oleg,

What will happen in the event that the caption is too long for the available space? Will xtpFlagControlStretched automatically truncate the text and place an ellipse at the end of it??????




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