Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Problem with Button Style
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with Button Style

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


Joined: 31 August 2004
Location: Italy
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote cory Quote  Post ReplyReply Direct Link To This Post Topic: Problem with Button Style
    Posted: 13 April 2006 at 8:31am

Sorry for my english......

I have a button toolbar, if change style button from "only icon" to "icon and text" from the customize dialog.

If into events "CutomizationDone" i check when button style have changed the code not return the correct style but style is always "tpButtonAutomatic"

Example

Sub Form_Load()

   With CmdBars.Controls

       .Add xtpControlButton, ID_FILE_EXIT, "Exit"

       .Add(xtpControlButton, ID_FILE_OPEN, "Open"

       .Add(xtpControlButton, ID_FILE_CLOSE, "Close"

   end with

end sub

 

Private Sub CmdBars_CustomizationDone()

    Dim ToolBar As CommandBar

    Set ToolBar = CmdBars.Item(2)
       
    With ToolBar
        For i = 1 To .Controls.Count

               ' .Controls(i).style    is always "tpButtonAutomatic"

               if .Controls(i).style = xtpButtonIconAndCaption then

                     ................

               endif

        Next
    End With

end sub

 

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: 13 April 2006 at 11:26am

Hello,

Right :( Style don't return User customized Style :( We fixed it for upcoming 10.1.1 quick fix release.

Thanks!

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.047 seconds.