Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - How do i set an icon for system popup list items?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

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

 Post Reply Post Reply
Author
Message
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post Topic: How do i set an icon for system popup list items?
    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.
Back to Top
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post Posted: 09 July 2007 at 12:55am
Hi,
 
no response/solution to this issue? :(
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: 09 July 2007 at 1:28am
Hello,
 
Sorry CXTPRibbonControlSystemPopupBarListItem  class doesn't support icons.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post 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,
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: 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
Back to Top
Moonlite View Drop Down
Newbie
Newbie


Joined: 19 January 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Moonlite Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post 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"

Back to Top
Moonlite View Drop Down
Newbie
Newbie


Joined: 19 January 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Moonlite Quote  Post ReplyReply Direct Link To This Post Posted: 26 January 2008 at 5:26am
Thanks again! 
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.188 seconds.