Print Page | Close Window

Define one Toolbar - resulting in two (one empty)

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=18428
Printed Date: 23 November 2024 at 9:10am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Define one Toolbar - resulting in two (one empty)
Posted By: DaveB
Subject: Define one Toolbar - resulting in two (one empty)
Date Posted: 23 May 2011 at 8:33pm
Place CommandBars control on form
Add the following code in FormLoad:
 
Dim ToolbarHusb As CommandBar
    Set ToolbarHusb = CommandBarHusb.Add("Husband", xtpBarTop)
    AddButton ToolbarHusb.Controls, xtpControlButton, ID_SPOUSES_HUSB
    ' add a few more buttons
 
    CommandBarHusb.Icons.LoadBitmap App.Path & "\res\Female32.png", ID_SPOUSES_HUSB, xtpImageNormal 'Pic:4013
    'load a few more icons
 
Run the program:
 
I am getting a blank bar above the one I am defining.  Why?
 
 
Also, how do I turn off the "Add or Remove..." option?
 
VB6 ActiveX
 
DaveB


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



Replies:
Posted By: jpbro
Date Posted: 23 May 2011 at 8:53pm
1) Before building your toolbars, call CommandBarHusb.DeleteAll
2) ToolbarHusb.ShowExpandButton = False


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