?
Solved

OwnerDrawFixed in TDBComboBox

Posted on 2003-03-08
4
Medium Priority
?
304 Views
Last Modified: 2010-04-04
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
Comment
Question by:beyondeast
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 

Accepted Solution

by:
JamesLondon earned 200 total points
ID: 8095791
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
 

Expert Comment

by:CleanupPing
ID: 9316888
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
 
LVL 5

Expert Comment

by:snehanshu
ID: 10090411
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month14 days, left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question