Print Page | Close Window

Icon Size in combobox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=13216
Printed Date: 21 June 2024 at 4:28pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Icon Size in combobox
Posted By: Lodep59
Subject: Icon Size in combobox
Date 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)



Replies:
Posted By: Lodep59
Date Posted: 20 January 2009 at 12:42pm
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)


Posted By: nighthawk
Date Posted: 22 January 2009 at 8:47pm
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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net