SF combobox draw issue
 
Home My Account Forum Try It! Buy It!
About Contact Us Site Map
StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



SF combobox draw issueExpand / Collapse
Author
Message
Posted 01/25/2008 1:56:05 PM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 12:50:24 AM
Posts: 597, Visits: 13,210
I have an issue where the dropdown part of a combobox always draws behind the ThemedGroupBox control when the droppeddown property is set to true on the combo in code. I cannot for the life of me get it to draw properly, any ideas?

Post #13737
Posted 01/27/2008 10:13:28 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 9:36:54 PM
Posts: 4,200, Visits: 4,251
Keith,

It sounds like there is something in the environment that is forcing the DC (device context) to render on another Window handle.  This can happen, but default behavior should not cause this.  The only time I generally see stuff like this is when there is something fired within an event, thread, etc. that forces the handle back to some other context.  I created a quick sample and used the multi-column approach as this performs custom rendering and should be more apt to reproduce the problem.  Try the sample attached to see if you have the same problem as I could not reproduce your problem here.

If you are setting the DroppedDown property through an event, you might consider (just for testing) to set a timer then set the DroppedDown property through the timer to see if the probem goes away.  If so, then you know the culprit and can go from there.

  Post Attachments 
WindowsApplication2.zip (0 views, 71.32 KB)

Post #13745
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 1:10am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.141. 11 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.