Print Page | Close Window

Custom control in CommandBar

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=10466
Printed Date: 07 October 2024 at 10:59pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Custom control in CommandBar
Posted By: Onur
Subject: Custom control in CommandBar
Date Posted: 02 May 2008 at 7:49pm
Hi,

Does anybody know how I can add a numeric up-down control to a commandbar menu?

I searched the forum and the samples... Didn't help...


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



Replies:
Posted By: Aaron
Date Posted: 03 May 2008 at 3:05pm
Hi,
 
Add Menu item (popup) to commandbar:
 
Dim ControlMenuItem As CommandBarPopup
Set ControlMenuItem = CommandBars.ActiveMenuBar.Controls.Add(xtpControlPopup, YOUR_ID, "Test")
Add Editbox to submenu item:

Dim editSpinButton As CommandBarEdit
Set editSpinButton = ControlMenuItem.CommandBar.Controls.Add(xtpControlEdit, YOUR_ID, "Test edit")
      editSpinButton.ShowSpinButtons = True
   


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: Onur
Date Posted: 03 May 2008 at 3:55pm
Just realized that (ShowSpinButtons)..
Thanks a lot..


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


Posted By: Aaron
Date Posted: 04 May 2008 at 9:17am
Hi,
 
btw I think it's a good idea to use the text in the signature to show the members what your version, OS and development language is. If you don't use it, you can use it for this, right


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: Onur
Date Posted: 04 May 2008 at 3:42pm
definitely : )

-------------
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