Print Page | Close Window

[Partially Solved] Label Left Margin in Popup

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


Topic: [Partially Solved] Label Left Margin in Popup
Posted By: jpbro
Subject: [Partially Solved] Label Left Margin in Popup
Date Posted: 06 June 2008 at 7:44pm
Hi,

I've added an xtpControlLabel to the CommandBars object of my QuickAccess bar as follows:


      Set objQA = mobjRibbonBar.QuickAccessControls.Add(xtpControlSplitButtonPopup, CMD_Print, "Print")
      objQA.CommandBar.BarID = CMD_Print
      With objQA.CommandBar.Controls
         Set objCtrl = .Add(xtpControlLabel, CMD_PrinterDeviceLabel, "Available Printers")
         objCtrl.IconID = CMD_Print

         Set objCtrl = .Add(xtpControlButton, CMD_PrintSetup, "Printer Options...")
         objCtrl.BeginGroup = True
      End With


The Label starts its display at the left edge of the popup menu, which cause problems if you are trying to add an icon to the item:



Now, I've added a label to another (non-quickaccess) popup menu, and it seems to appear properly:



Any idea what I am doing wrong? Is there a way to set the left edge of the Label?

Thanks for any help.

EDIT: Adding an icon no longer cause an overlap in 12.0.1.
HOWEVER:
When there is no icon, the label still appears in the icon area instead of appearing to the right like in image #2 above. The line under the label also crosses over the icon column boundary. Is this is expected/designed behaviour?


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




Replies:
Posted By: ijwelch
Date Posted: 07 June 2008 at 12:10am
I can't find a way. Also would expect flags=xtpFlagRightAlign to work but it doesn't:(

Think this needs fixing by CJ.

Workaround is add spaces before label caption or don't display icon.


Posted By: Oleg
Date Posted: 09 June 2008 at 4:36am
Hi,
 
Thanks. fixed for 12.0.1


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


Posted By: jpbro
Date Posted: 09 June 2008 at 1:18pm
Thank you Oleg & Co...

Is there a release date for 12.0.1? There are a number of fixes I'm interested in, and I have a demo coming up in a few weeks, so I'd like to know what I can include and what I'll need to hide...

Thanks a lot.


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




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