Rectangular Tab Icons |
Post Reply |
Author | |
GARC
Newbie Joined: 07 October 2011 Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: 29 May 2013 at 10:16am |
Hello.
I am trying to set rectangular tab icons for my docking panes. I have created an image list of 5 images of 72x36 pixels each. This is the piece of code I am using to assign these images to the tab icons inside my OnCreate function: m_PaneManager.GetPaintManager()->GetTabPaintManager()->m_szIcon = CSize(72, 36); CXTPImageManager* icons_manager = m_PaneManager.GetImageManager(); icons_manager->SetIcons(m_tabs_image_list, nIDIcons, _countof(nIDIcons), CSize(72, 36), xtpImageNormal); Once executed, I notice that the tabs are higher than desired as shown in the following picture: As you can see, despite the images are shown correctly, and although the size of the icons has been set to CSize(72,36) as shown in the code, it seems to be forced to show a square 72x72 icon size, producing those undesireble margins up and down each image. How can I get rid of those margins and maintain the height of the tabs in 36 pixels? Thanks in advance. Alex. |
|
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 |