Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - how to create a toolbar button w/ cap..
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to create a toolbar button w/ cap..

 Post Reply Post Reply
Author
Message
vbuser View Drop Down
Newbie
Newbie


Joined: 22 January 2004
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote vbuser Quote  Post ReplyReply Direct Link To This Post Topic: how to create a toolbar button w/ cap..
    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!

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
vbuser View Drop Down
Newbie
Newbie


Joined: 22 January 2004
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote vbuser Quote  Post ReplyReply Direct Link To This Post Posted: 23 January 2004 at 3:54pm
I found NONE for Xtreme Suite ActiveX 8.6
Back to Top
Boyd View Drop Down
Senior Member
Senior Member


Joined: 08 December 2003
Location: United States
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boyd Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
vbuser View Drop Down
Newbie
Newbie


Joined: 22 January 2004
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote vbuser Quote  Post ReplyReply Direct Link To This Post 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

 

 

Back to Top
Boyd View Drop Down
Senior Member
Senior Member


Joined: 08 December 2003
Location: United States
Status: Offline
Points: 285
Post Options Post Options   Thanks (0) Thanks(0)   Quote Boyd Quote  Post ReplyReply Direct Link To This Post 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.

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.203 seconds.