Hi,
I am using the Syncompletion component and I want to paint the item text with an icon and sometimes it works and then sometimes the component writes the text over my custom painted text.
//paint the icon
main_datamod.main_tool_bar_images.Draw(aCanvas, x+2, y,iconindex) ;
//write the text past the icon, stype is a string that contains the type of sql i.e. TABLE,VIEW etc.
acanvas.TextOut(x+20,y, stype);
acanvas.Font.Style:=[fsBold];
acanvas.TextOut(x+200,y,Akey);
it's like it should have an ownerdraw property or something, probably I am doing it completely wrong LOL.
See the attached image for what it looks like, when execute the completion.