Recent

Author Topic: TFrame Align [alClient] does not?  (Read 3622 times)

MorbidFractal

  • Jr. Member
  • **
  • Posts: 97
TFrame Align [alClient] does not?
« on: April 11, 2011, 03:07:31 pm »
May not be the actual issue.

I have a panel, known as Panel4, and a TFrame which is set to alClient. It contains a TImage also set to alClient.

When I create things I get this,

http://img717.imageshack.us/img717/3330/testshot1.png

I've left the original TFrame in the image and you can see that as created it does not appear to have aligned to the client. However the 'cursor', in pinky red, is in place and the toolbar, X= Y=, is showing it as being located outside of the bounds of the drawn image.

I am using the TImage mouseenter/mouseleave event to determine whether or not to draw the cursor so it is, apparently, being recognized as being within the image.

If I 'kick it' by getting things to redraw from 'portrait' back to 'landscape' then I get this,

http://img339.imageshack.us/img339/9210/testshot2.png

I am using a TBitMap to 'scribble' on and then copying the result back to the TImage for display. The TBitMap involved has its dimensions set up to 'match' those of the TImage and, hopefully, you will see it is picking up the right numbers but unfortunately it is getting 'cropped' to the original, as designed, TImage size.

I can get things to, almost, behave if I actively intervene and set the TImage width/height to the client, Panel4 width/height, prior to 'scribbling' but the result is inconsistent in as much as I end up with bits of old picture left in place.

I do apologise if that did not make sense...

Any ideas?

Oh, sorry v0.9.28.2-8UBUNTU1 beta
« Last Edit: April 11, 2011, 03:14:59 pm by MorbidFractal »

 

TinyPortal © 2005-2018