![]() |
How to add large icons for the dynamical toolbar |
Post Reply ![]() |
Author | |
Howard Farseer ![]() Groupie ![]() Joined: 30 September 2007 Status: Offline Points: 30 |
![]() ![]() ![]() ![]() ![]() Posted: 26 October 2008 at 8:20am |
I've create a toolbar that is created dynamically with CXTPToolbar::GetControls()->Add(..)
I set the icon of its' buttons with pControl->SetIconId(nIndex). nIndex is the one I had added to the imaglist of XTPImageManager. The question is: When the toolbar is shown as small icon the toolbar works fine but the icons disappears when the toolbar is shown as large icons. How can I add large icons for the toolbar or let the toolbar to resize the small icons for use of large icons? |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
seems you have some additional code... have to resize it automatically.
Try don't call SetIconId but set Icons to ImageMaanger with id of buttons.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Howard Farseer ![]() Groupie ![]() Joined: 30 September 2007 Status: Offline Points: 30 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Thank you. I'll have a try. |
|
![]() |
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 |