Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 306
  • Last Modified:

OwnerDrawFixed in TDBComboBox

Hi,

I put a TDBComboBox in a TDBCtrlList and I want to change the view of TDBComboBox, so I changed the style property to csOwnerDrawFixed and write some code in OnDrawItem.  Everything goes well but if the TDBComboBox loses its focus, the text on it disappear!  I think the reason may lie in that the FPaintControl inside TDBComboBox doesn't know how to call the customized drawitem procedure I wrote.  Anybody here can give some advices?  Thanks a lot!

Linton
0
beyondeast
Asked:
beyondeast
1 Solution
 
JamesLondonCommented:
Hi Linton,

Perhaps you should forceably call your OnDrawItem event from the Controls OnExit so that when Focus is lost, your event is called re-Draw the contol.

Best Regards,
Jamie
0
 
CleanupPingCommented:
beyondeast:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
snehanshuCommented:
Hi!
No comment has been added lately and this question is therefore classified abandoned.

If asker wishes to close the question, then refer to
http://www.experts-exchange.com/help/closing.jsp

Otherwise, I will leave a recommendation in the Cleanup topic area that this question is:

Answered by: JamesLondon

Please leave any comments here within the next seven days. It is assumed that any participant not responding to this request is no longer interested in its final disposition.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

...Snehanshu
EE Cleanup Volunteer
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now