Print Page | Close Window

Combobox alignment in commandbars

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=10861
Printed Date: 16 June 2025 at 7:12pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Combobox alignment in commandbars
Posted By: Onur
Subject: Combobox alignment in commandbars
Date Posted: 01 June 2008 at 9:07am
Hi,

I figured out how to add a word-like combobox to the main popup menu in commandbars:


CommandBarComboBox CMB = (CommandBarComboBox)CommandBars.ActiveMenuBar.Controls.Add(XTPControlType.xtpControlComboBox, 98855, "Test", -1, false);


but don't know how to align the combobox so it appears on the right-most corner of the menu..

Any ideas?

thanks..


-------------
Product: Xtreme SuitePro (ActiveX) version 12.0.1
Platform: Windows XP (32bit) - SP 2
Language: Visual C# .NET



Replies:
Posted By: Onur
Date Posted: 01 June 2008 at 9:40am
Nevermind..
Here is the simple solution : )

CMB.Flags = XTPControlFlags.xtpFlagRightAlign;



-------------
Product: Xtreme SuitePro (ActiveX) version 12.0.1
Platform: Windows XP (32bit) - SP 2
Language: Visual C# .NET



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