DropDownlist not properly themed under Vista |
Post Reply |
Author | |
TomasS
Groupie Joined: 28 January 2009 Location: Sweden Status: Offline Points: 47 |
Post Options
Thanks(0)
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?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
Add CommandBarCustom control and attach standard ComboBox to it.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
TomasS
Groupie Joined: 28 January 2009 Location: Sweden Status: Offline Points: 47 |
Post Options
Thanks(0)
|
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?
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
TomasS
Groupie Joined: 28 January 2009 Location: Sweden Status: Offline Points: 47 |
Post Options
Thanks(0)
|
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.)
|
|
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 |