Vote UpVote

FireMonkey’s BoundsRect bug, and working around it

Delphi Haven – Just a quick one, but the BoundsRect property getter in the FireMonkey TControl is incorrectly implemented, returning (0, 0, Width, Height) rather than (Position.X, Position.Y, Position.X + Width, Position.Y + Height). At first you might be tempted to say the property just has different semantics to the VCL version, however the implementation of the property setter gives the lie to that. Steps: Create a new FireMonkey HD application. Add a button to the form. Handle the button’s OnClick event like this: procedure TForm1.Button1Click(Sender: TObject); begin Button1.BoundsRect := ...
Favorite? Off-Topic? Chris Rolliston @ 2013-01-17 16:41


Visits: 657
Votes: 2
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Primoz Gabrijelcic
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)