![]() |
How do i set an icon for system popup list items? |
Post Reply
|
| Author | |
joeliner
Senior Member
Joined: 09 June 2006 Status: Offline Points: 273 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
joeliner
Senior Member
Joined: 09 June 2006 Status: Offline Points: 273 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 July 2007 at 12:55am |
|
Hi,
no response/solution to this issue? :(
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 July 2007 at 1:28am |
|
Hello,
Sorry CXTPRibbonControlSystemPopupBarListItem class doesn't support icons.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
joeliner
Senior Member
Joined: 09 June 2006 Status: Offline Points: 273 |
Post Options
Thanks(0)
Quote Reply
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,
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Moonlite
Newbie
Joined: 19 January 2008 Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
joeliner
Senior Member
Joined: 09 June 2006 Status: Offline Points: 273 |
Post Options
Thanks(0)
Quote Reply
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" |
|
![]() |
|
Moonlite
Newbie
Joined: 19 January 2008 Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 January 2008 at 5:26am |
|
Thanks again!
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |