![]() |
Custom Icons |
Post Reply
|
| Author | |
grudy
Groupie
Joined: 02 November 2004 Location: United States Status: Offline Points: 19 |
Post Options
Thanks(0)
Quote Reply
Topic: Custom IconsPosted: 04 November 2004 at 10:22am |
|
My application allows users to customize our toolbars and menus using a programming API - everything works great except I can't figure out how to allow them to change icons, and have them saved. I can use XTPImageManager( )->SetIcons( ) to load a bitmap/icon that they specify and have it show up as the icon in the menu or toolbar, however when you exit, the new image is not saved in the registry. If I go thru customization and create an icon, that image is properly saved, however that uses XTPImageManager( )->AddCustomIcon( ) which is private (also sets m_nCustomIconId in CXTPControl, which is likewise not public) Is there some way that I am missing to create the custom icon image programmatically at runtime, and get it saved. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 November 2004 at 1:27am |
|
In next release we added void CXTPControl::AddCustomIcon(HICON hIcon) and make CXTPImageManager::AddCustomIcon public.
so you can patch your sources too. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 November 2004 at 1:28am |
|
better CXTPControl::SetCustomIcon
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
grudy
Groupie
Joined: 02 November 2004 Location: United States Status: Offline Points: 19 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 November 2004 at 8:50am |
|
Thanks. That is just what I needed. It works great.
|
|
![]() |
|
Green
Newbie
Joined: 14 January 2005 Location: Russian Federation Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 February 2005 at 4:01am |
|
Hi Oleg, |
|
![]() |
|
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 |