Don’t expect the Parent property to be set inside an FMX control’s Paint m

So… I'm working on a little custom FireMonkey control. As in the VCL, if you want to handle drawing a custom control yourself, you
need to override its Paint method. In my case the override was looking like
this:
If you're wondering, this was partly a workaround for the fact FMX
doesn't have a 'parent font' concept like the VCL. Anyhow, the code
seemed to work fine until I enabled drag and drop. In FireMonkey, the drag
image for an internal drag and drop operation is dynamically created from
the image of the dragged control (good), but in my case,

Link URL*:
http://delphihaven.wordpress.com/2013/07/05/parent-property-in-paint-method/
Share this article :
 

Post a Comment

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2013. Backlink Website Directory - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger