Print Page | Close Window

DropDownlist not properly themed under Vista

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=13274
Printed Date: 07 October 2024 at 6:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: DropDownlist not properly themed under Vista
Posted By: TomasS
Subject: DropDownlist not properly themed under Vista
Date Posted: 28 January 2009 at 6:26am
I'm considering purchasing the Xtreme Suite and using commandbars in particular so I was evaluating the demo. 
I've set the commandbar to use the NativeXP theme.
I add a ComboBox control to a toolbar and set it up as a DropDownList.  It renderes nice enough on XP using the theme, but on Vista it does not look like a themed DropDownList. (It should look more like a commandbutton with an arrow on it). Has anyone figured out a way to fix/get around this?
Is it possible to host a regular combobox control in the toolbar with SetParent?



Replies:
Posted By: Oleg
Date Posted: 28 January 2009 at 7:19am
Hello,
 
Add CommandBarCustom control and attach standard ComboBox to it.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: TomasS
Date Posted: 19 February 2009 at 6:25am
Hi
 
I've tried to do it, but failed to figure out how. I looked through the online help, samples and forums but found no clues there either.
Could somebody give me a hint where to look?


Posted By: Aaron
Date Posted: 20 February 2009 at 12:32am
Hi,
 
Add Picturebox to form and combobox to picturebox. Safest way is using picturebox because sometimes control will be detached.
 
    Dim toolBar As CommandBar
    Dim custControl As CommandBarControlCustom
   
    Set toolBar = CommandBars.Add("Tools", xtpBarTop)
    Set custControl = toolBar.Controls.Add(xtpControlCustom, 1, "Styles")
          custControl.Handle = Picture1.hWnd
   
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: TomasS
Date Posted: 20 February 2009 at 9:37am
Thanks, worked great.
(apart from the 1 pixel corners of the picturebox seen through the combobox since it's got rounded corners. But I can live with that for now.)



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