Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - DropDownlist not properly themed under Vista
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

DropDownlist not properly themed under Vista

 Post Reply Post Reply
Author
Message
TomasS View Drop Down
Groupie
Groupie
Avatar

Joined: 28 January 2009
Location: Sweden
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote TomasS Quote  Post ReplyReply Direct Link To This Post Topic: DropDownlist not properly themed under Vista
    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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 28 January 2009 at 7:19am
Hello,
 
Add CommandBarCustom control and attach standard ComboBox to it.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
TomasS View Drop Down
Groupie
Groupie
Avatar

Joined: 28 January 2009
Location: Sweden
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote TomasS Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
TomasS View Drop Down
Groupie
Groupie
Avatar

Joined: 28 January 2009
Location: Sweden
Status: Offline
Points: 47
Post Options Post Options   Thanks (0) Thanks(0)   Quote TomasS Quote  Post ReplyReply Direct Link To This Post 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.)
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.139 seconds.