Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Control Width
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Control Width

 Post Reply Post Reply
Author
Message
ianp View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 19 December 2003
Location: United Kingdom
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote ianp Quote  Post ReplyReply Direct Link To This Post Topic: Control Width
    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.



Edited by ianp
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 20 January 2005 at 1:49am
In Next version xtpFlagControlStretched will be available.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ianp View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 19 December 2003
Location: United Kingdom
Status: Offline
Points: 119
Post Options Post Options   Thanks (0) Thanks(0)   Quote ianp Quote  Post ReplyReply Direct Link To This Post 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??????

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.