Board index » cppbuilder » DrawItem not called in class derived from TCustomListBox
mmoerth
![]() CBuilder Developer |
DrawItem not called in class derived from TCustomListBox2008-06-14 05:08:26 AM cppbuilder50 Hello Everyone, I am trying to implement a listbox control derived from TCustomListBox. Header: Quote//--------------------------------------------------------------------------- Quote//--------------------------------------------------------------------------- However when I click the control in the form editor and drag it around my DrawItem method is called (Error messages are drawn in red color). But then and only then. So for some reason my method is only called when I drag the control around in the form editor. Seems like very strange behaviour to me... My version: CodeGear C++Builder 2007 R2 Version 11.0.2987.10779 Any Ideas? Thanks for any comments, Martin |