Window.ShowWithin "Modality"

[quote]Neil Burkholder Dec 24 ANSWER
You would have to do something like this for compatibility on both Mac and Windows.
Sample Project [/quote]
I tried the Sample Project in the debugger on a Mac(Current OS Current XOJO IDE) and got a nilobjectexception on the WinSheet Moved event after clicking on the “ShowModalWithin” button and before the secondary button window appeared.

if self.Left < ParentWindow.Left Then self.Left = ParentWindow.Left

Suggestions?