On 25.03.2013, at 12:16, Marnaud <[email protected]> wrote:

> Greetings,
> 
> I see two ways to zoom a window (for a “Zoom” menu item in the “Window” menu, 
> for example), but neither work:
> (w is the target window)
> 1: w.IsZoomedMacMBS=not w.IsZoomedMacMBS
> 2: w.NSWindowMBS.performZoom
> 
> The first is bad, as RB doesn't seem to handle it very well (controls aren't 
> resized, no “Maximized” event, …). The second does nothing, albeit the zoom 
> button is enabled (the documentation says “Window.NSWindowMBS” should work 
> for a Carbon window in my Carbon app, so it's not a problem).
> I'm wondering if one of these can be worked around, or if there's another way.

I use the first method and it works. The fact you don't get the Maximize event 
is due to a bug on Cocoa target: <feedback://showreport?report_id=23281>

Massimo Valle




SACO Software and Consulting GmbH, Mühlgasse 5, D-97840 Hafenlohr
Tel.: ++49 9391 90890-0, Fax: ++49 9391 90890-99, E-Mail: [email protected]
Amtsgericht Würzburg HRB 5410, Geschäftsführer: Peter Schubert, 
Dipl.-Wirt.ing.(FH) Thorsten Beck

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to