Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Custom control in CommandBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Custom control in CommandBar

 Post Reply Post Reply
Author
Message
Onur View Drop Down
Groupie
Groupie


Joined: 17 August 2005
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote Onur Quote  Post ReplyReply Direct Link To This Post Topic: Custom control in CommandBar
    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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
Onur View Drop Down
Groupie
Groupie


Joined: 17 August 2005
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote Onur Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
Onur View Drop Down
Groupie
Groupie


Joined: 17 August 2005
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote Onur Quote  Post ReplyReply Direct Link To This Post 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
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.219 seconds.