![]() |
CXPTRibbonGroup::SetIconId |
Post Reply ![]() |
Author | |
Fredrik ![]() Senior Member ![]() Joined: 22 June 2005 Status: Offline Points: 235 |
![]() ![]() ![]() ![]() ![]() Posted: 04 July 2018 at 5:42am |
It's been a few versions and years like this, but calling SetIconId on a ribbon group has still no effect. Are there any plans to fix it? If not I suggest to remove the function but it would be handy to set the ribbon group icon instead of the current workaround.
|
|
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0
|
|
![]() |
|
cpede ![]() Senior Member ![]() Joined: 13 August 2004 Location: Denmark Status: Offline Points: 680 |
![]() ![]() ![]() ![]() ![]() |
Yes, please fix this.
It is not possible to make dynamic Ribbons without this feature, and the method exist but does not do anything.
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
![]() |
|
dbrookes ![]() Groupie ![]() Joined: 30 August 2019 Location: Australia Status: Offline Points: 70 |
![]() ![]() ![]() ![]() ![]() |
I call both pGroup->SetIconId and pGroup->GetControlGroupPopup()->SetIconId. The control group popup is the button popup XTP displays when the group is collapsed or when it is added to the quick access toolbar. Regards, Daniel.
|
|
![]() |
|
cpede ![]() Senior Member ![]() Joined: 13 August 2004 Location: Denmark Status: Offline Points: 680 |
![]() ![]() ![]() ![]() ![]() |
That did it :-) Now it works.
But where is the icon id on the group then used?
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
![]() |
|
Fredrik ![]() Senior Member ![]() Joined: 22 June 2005 Status: Offline Points: 235 |
![]() ![]() ![]() ![]() ![]() |
I use GetGroups()->Add instead of AddGroup
where ID_COMMAND_ID is associated with the icon I want to be used when the group is collapsed. But often I would be satisfied if just the icon of the first command was automatically displayed. But I wish the release cycle on the toolkit would be faster and that one could send pull requests for things we have to do workarounds at the moment. The this would have been fixed years ago. |
|
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0
|
|
![]() |
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 |