Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - [Partially Solved] Label Left Margin in Popup
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[Partially Solved] Label Left Margin in Popup

 Post Reply Post Reply
Author
Message
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Topic: [Partially Solved] Label Left Margin in Popup
    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

Back to Top
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post 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.
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: 09 June 2008 at 4:36am
Hi,
 
Thanks. fixed for 12.0.1
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

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.172 seconds.