SF combobox draw issue


Author
Message
Keith Chisarik
Keith Chisarik
StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)StrataFrame VIP (1.6K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
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?




Keith Chisarik
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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.

Attachments
WindowsApplication2.zip (69 views, 71.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search