Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Icon Size in combobox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Icon Size in combobox

 Post Reply Post Reply
Author
Message
Lodep59 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 03 April 2008
Status: Offline
Points: 203
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lodep59 Quote  Post ReplyReply Direct Link To This Post Topic: Icon Size in combobox
    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)
Back to Top
Lodep59 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 03 April 2008
Status: Offline
Points: 203
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lodep59 Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
nighthawk View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 June 2004
Status: Offline
Points: 167
Post Options Post Options   Thanks (0) Thanks(0)   Quote nighthawk Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.