Icon Size in combobox |
Post Reply |
Author | |
Lodep59
Senior Member Joined: 03 April 2008 Status: Offline Points: 203 |
Post Options
Thanks(0)
Posted: 20 January 2009 at 12:13pm |
Hi,
In order to initalize a combobox in my app i use this code :
XtremeSuiteControls.Icons.AddIcons frmMain.ImagesHighlightColor.Icons
Me.cmbHighlightColor.AddItem "<StackPanel Orientation='Horizontal'>" & _
"<Image VerticalAlignment='Center' Source='110008'/>" & _ "<TextBlock Padding = '2' VerticalAlignment='Center'>My Color</TextBlock></StackPanel>" The Image List "frmMain.ImagesHighlightColor.Icons" contain both 16x16 and 32x32 versions of the icons.
In the previous version, when i used this code, the combo was correctly filled with the 16x16 version of the icons.
In the new version, the 32x32 version is used, so my combobox is unreadable.
I can't increase the height of the combobox...
Can you help me ? Is there a way to tell the combo to use the 16x16 version of my icons ?
Thanks.
|
|
Product: Xtreme SuitePro (ActiveX) last version
Platform: Windows 7 Ultimate Language: VB6 SP6 (FR) |
|
Lodep59
Senior Member Joined: 03 April 2008 Status: Offline Points: 203 |
Post Options
Thanks(0)
|
Forget it, this works :
Me.cmbHighlightColor.AddItem "<StackPanel Orientation='Horizontal'>" & _ "<Image Height='16' Width='16' VerticalAlignment='Center' Source='110008'/>" & _ "<TextBlock Padding = '2' VerticalAlignment='Center'>My Color</TextBlock></StackPanel>" |
|
Product: Xtreme SuitePro (ActiveX) last version
Platform: Windows 7 Ultimate Language: VB6 SP6 (FR) |
|
nighthawk
Senior Member Joined: 11 June 2004 Status: Offline Points: 167 |
Post Options
Thanks(0)
|
I had a combobox which was showing 16x16 icons for some items and 32x32 icons for other items. I wasn't able to figure out why it was doing that but setting the Height and Width parameters fixed the problem. Thanks for posting the solution.
|
|
Product: Xtreme SuitePro (ActiveX) version 13.0.0
Platform: Windows XP (32bit) - SP 3 Language: Visual Basic 6.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 |