Xojo Conferences
XDCMay2019MiamiUSA

Re: [MBS] Cocoa window smooth move and resize (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] [ANN] Xojo Training and Meeting in Konstanz, Germany
Next thread: [MBS] WinUSBDeviceMBS.devices for Mac


Re: [MBS] Cocoa window smooth move and resize   -   Aaron Andrew Hunt
   [MBS] Cocoa window smooth move and resize   -   Aaron Andrew Hunt
    Re: [MBS] Cocoa window smooth move and resize   -   Christian Schmitz
    Re: [MBS] Cocoa window smooth move and resize   -   Marnaud

Re: [MBS] Cocoa window smooth move and resize
Date: 02.04.14 12:08 (Wed, 2 Apr 2014 07:08:29 -0400)
From: Aaron Andrew Hunt
Works perfectly! Thank you for the fast answer as always, Christian :)
Aaron
=====

On Apr 2, 2014, at 6:00 AM, <email address removed> wrote:
>> For Carbon apps, I could use this to smoothly move and resize a window:
>>
>> call self.TransitionWindowMBS(Nil, 3, 3, x, y, w, h ,false, 0.5)
>>
>> But this doesn’t work in Cocoa. I searched through NSWindow and couldn’t find any equivalent for Cocoa. Any help?
>
> NSWindowMBS has a method setFrame(frameRect as NSRectMBS, display as boolean, animated as boolean) to do this.
>
> Sincerely
> Christian

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

[MBS] Cocoa window smooth move and resize
Date: 02.04.14 06:19 (Wed, 2 Apr 2014 01:19:00 -0400)
From: Aaron Andrew Hunt
For Carbon apps, I could use this to smoothly move and resize a window:

call self.TransitionWindowMBS(Nil, 3, 3, x, y, w, h ,false, 0.5)

But this doesn’t work in Cocoa. I searched through NSWindow and couldn’t find any equivalent for Cocoa. Any help?

Thanks,
Aaron
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] Cocoa window smooth move and resize
Date: 02.04.14 09:32 (Wed, 2 Apr 2014 10:32:11 +0200)
From: Christian Schmitz

Am 02.04.2014 um 07:19 schrieb Aaron Andrew Hunt <<email address removed>>:

> For Carbon apps, I could use this to smoothly move and resize a window:
>
> call self.TransitionWindowMBS(Nil, 3, 3, x, y, w, h ,false, 0.5)
>
> But this doesn’t work in Cocoa. I searched through NSWindow and couldn’t find any equivalent for Cocoa. Any help?

NSWindowMBS has a method setFrame(frameRect as NSRectMBS, display as boolean, animated as boolean) to do this.

Sincerely
Christian

--

Re: [MBS] Cocoa window smooth move and resize
Date: 02.04.14 09:04 (Wed, 02 Apr 2014 10:04:47 +0200)
From: Marnaud
Le 2 avr. 2014 à 7:19, Aaron Andrew Hunt a écrit:

> For Carbon apps, I could use this to smoothly move and resize a window:
>
> call self.TransitionWindowMBS(Nil, 3, 3, x, y, w, h ,false, 0.5)
>
> But this doesn’t work in Cocoa. I searched through NSWindow and couldn’t find any equivalent for Cocoa. Any help?

You can use Window.SmoothResizeMBS or Window.SmoothResizeCenteredMBS, thought this mainly resize the window rather than moving it.
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info