Print Page | Close Window

How do i set an icon for system popup list items?

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=7529
Printed Date: 08 October 2024 at 1:21pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How do i set an icon for system popup list items?
Posted By: joeliner
Subject: How do i set an icon for system popup list items?
Date Posted: 05 July 2007 at 3:17am
Am trying to set icons for the system button list items that appear on the right. my code is:
 
        Set Control =CommandBars.CreateCommandBarControl("CXTPRibbonControlSystemPopupBarListItem")
        Control.Caption = "Command 1"
        Control.Id = 230
        Control.IconId = 231
        .Controls.AddControl Control
but am not getting any result?
 
Anyone with an idea on how to do it?  or if CXTPRibbonControlSystemPopupBarListItem does not support icons, which class should i use? I tried using the CXTPControlButton but it doesnt render the icon properly since the icon i want to show is a 16x16. When i use the CXTPControlButton it can only show it in the dimension set by SetIconSize property of the popup bar.
 
Thanks in advance.



Replies:
Posted By: joeliner
Date Posted: 09 July 2007 at 12:55am
Hi,
 
no response/solution to this issue? :(


Posted By: Oleg
Date Posted: 09 July 2007 at 1:28am
Hello,
 
Sorry CXTPRibbonControlSystemPopupBarListItem  class doesn't support icons.


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


Posted By: joeliner
Date Posted: 09 July 2007 at 1:44am

thanks oleg,

is there future plan for this. Icons really help in identifying a command action easily. :)

regards,


Posted By: Oleg
Date Posted: 09 July 2007 at 2:35am
Hello,
You can use standard buttons controls and set its width and height.


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


Posted By: Moonlite
Date Posted: 25 January 2008 at 4:22am
Hi,
after creating
Control=CommandBars.CreateCommandBarControl("CXTPRibbonControlSystemPopupBarListItem");

how can i programmatically set its value? i'm trying to set the caption on runtime and i cannot do it with FindControl. Thanks in advance.


Posted By: joeliner
Date Posted: 25 January 2008 at 7:20am
Hi,

to find control:
dim ribbon As RibbonBar
Set ribbon = CommandBars.ActiveMenuBar
Set control = Ribbon.AddSystemButton
control.CommandBar.FindControl(, ID_TEST).Caption = "test"

or,

    Set control = Ribbon.CommandBars.CreateCommandBarControl("CXTPRibbonControlSystemPopupBarListItem")
    control.Caption = "test"



Posted By: Moonlite
Date Posted: 26 January 2008 at 5:26am
Thanks again! 



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