Print Page | Close Window

Problem with Button Style

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=3993
Printed Date: 21 June 2025 at 11:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with Button Style
Posted By: cory
Subject: Problem with Button Style
Date 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

 




Replies:
Posted By: Oleg
Date 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



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