Print Page | Close Window

how to create a toolbar button w/ cap..

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


Topic: how to create a toolbar button w/ cap..
Posted By: vbuser
Subject: how to create a toolbar button w/ cap..
Date Posted: 22 January 2004 at 2:26am

The lack of documentation makes it difficult to figure out how to create a TOOLBAR with buttons that can show a CAPTION.

Is there any more technical information on these controls?

 

thank you!




Replies:
Posted By: Oleg
Date Posted: 23 January 2004 at 3:37pm
There is a lot of examples in the ToolKitPor/samples folder, please look them.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: vbuser
Date Posted: 23 January 2004 at 3:54pm
I found NONE for Xtreme Suite ActiveX 8.6


Posted By: Boyd
Date Posted: 24 January 2004 at 7:48am

This code snippet is from the Office 2003 GUI Sample in the Common group of samples

Dim ToolBar As CommandBar
Dim Control As ICommandBarControl
Set ToolBar = CommandBars.Add("Standard", xtpBarTop)
With ToolBar.Controls
    Set Control = .Add(xtpControlButton, ID_NAVIGATE_BACK, "&Back")
    Control.Style = xtpButtonIconAndCaption
End With

For some reason, the 'Style' property doesn't show up in the VB IDE as a property of the ICommandBarControl, but it is in the documentation.

Hope this helps.



Posted By: vbuser
Date Posted: 25 January 2004 at 10:29pm

Thank you for pointing this out - This is a perfect example of how you can WAIST time on simple things when there is NO helpfull documentation. I'm still going to browse some more to see how I can move the caption to the buttom of the button...

After I spent some time browsing the "documentation" this is what I found about this STYLE property, is this a joke?

treme CommandBars ActiveX Control module 

Style PropertyDescription
Gets/Sets the style of the control.

Property type
Read-write property

Syntax (Visual Basic)

Public Property Style() As XTPButtonStyle

See Also
CommandBarButton Object

 

 



Posted By: Boyd
Date Posted: 26 January 2004 at 7:10am

I don't think there is support for placing the caption below the button, but I could be wrong.  Good luck.




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