giuliano.colla at fastwebnet.it
Thu Mar 22 17:04:21 CET 2012
Il 22/03/2012 16:12, Felipe Monteiro de Carvalho ha scritto:
> On Thu, Mar 22, 2012 at 4:10 PM, Giuliano Colla
> <giuliano.colla at fastwebnet.it> wrote:
>> Am I missing something?
> It is code copied from http://sourceforge.net/projects/fpgfx/ so no
> wonder that you found something which makes no sense for the LCL =)
Also the code (which I haven't yet located, maybe because I didn't yet
search for it..) to update the actual position of the window on the
screen comes from the same source?
Because apparently it takes into account the window decoration in the
wrong sense. If you position a form back and forth, the position is
offset each time of an amount equal to the title bar height. In the long
run the form goes to the bottom of the screen...
There's another interesting problem with anchors: anchor right/bottom
doesn't appear to work correctly.
What's anchored right disappears, and what's anchored bottom raises an
error (or the other way around, I just made a quick test).
Debugging a new widget family is a lot of fun! ;-)
BTW, in order to check if paint messages dispatching through X gave some
penalty in time, I logged the time from the moment when the message is
sent to the moment it's received. Except at startup, where around 50ms
are required, in all other cases the delay is from 0 to 3 ms. No worries
on that side.
More information about the Customdrawn