[haiku-3rdparty-dev] Re: Animating view size / position advice

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Thu, 01 Sep 2011 12:26:54 +0200

On 01.09.2011 12:15, Axel Dörfler wrote:
On 01.09.2011 12:03, hey68 you wrote:
I would like to animate a change in a BView's size and/or position
(using ResizeBy and MoveBy functions).

Is there a relatively simple way to do this? Using a pulse and/or
posting a BMessage etc.?

Usually a BMessageRunner should be what you're looking for. You can find
an example in src/apps/switcher/ which uses this mechanism for animating
window movement.

Can you point to the code? I couldn't find it. Thanks!

Best regards,
-Stephan


Other related posts: