Xojo Conferences

[MBS] Animate ContainerControls? (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] [ANN] 13.1fc1
Next thread: Re: [MBS] dynapdf: SetTextRect question

Re: [MBS] PortAudio bug?   -   Garth Hjelte
  [MBS] Animate ContainerControls?   -   Osswald Oliver
   Re: [MBS] Animate ContainerControls?   -   Christian Schmitz

[MBS] Animate ContainerControls?
Date: 04.05.13 17:04 (Sat, 4 May 2013 18:04:53 +0200)
From: Osswald Oliver
(Cocoa) Is there a way to animate a ContainerControl similar to the example for animation of a window?

CocoaWindowFrameAnim.MoveResize(self, 00, -80,00,80)

I have a ContainerControl with a CustomNSSearchField on it and I want it to slide in when the user clicks a button, similiar to a sheet window.
But it is a containercontrol, placed within another container.

Is there anything in the Plugins which I could use for this?


Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>

Re: [MBS] Animate ContainerControls?
Date: 04.05.13 22:17 (Sat, 4 May 2013 23:17:32 +0200)
From: Christian Schmitz

Am 04.05.2013 um 18:04 schrieb Osswald Oliver <<email address removed>>:

> Is there anything in the Plugins which I could use for this?

You can simply use the NSViewMBS animator:

dim n as NSViewMBS = new NSViewMBS(ContainerControl11.Handle)
dim r as NSRectMBS = n.frame

r.X = r.X + 10

n.animator.frame = r

this will change frame with default animation.