Hi,
In short, it appears child works don't work as they should on Mac. When a window has a parent, the child window should:
> Not be able to leave the confines of the parent window
> Should minimize and maximize (hide and show) with parent window
> Should stay on top of parent window and remain visible whenever the parent is (unless hidden)
On Mac, child windows don't appear to follow any of those rules. They appear as if you had called 2 independent CreateWindow functions with no parenting specified at all.
Sample Code:
Cheers
Seb
In short, it appears child works don't work as they should on Mac. When a window has a parent, the child window should:
> Not be able to leave the confines of the parent window
> Should minimize and maximize (hide and show) with parent window
> Should stay on top of parent window and remain visible whenever the parent is (unless hidden)
On Mac, child windows don't appear to follow any of those rules. They appear as if you had called 2 independent CreateWindow functions with no parenting specified at all.
Sample Code:
SuperStrict Global wndParent:TGadget = CreateWindow("Parent Window",50,50,700,500,Null,15) Global wndChild:TGadget = CreateWindow("Child Window",50,50,300,200,wndParent,15) MaximizeWindow(wndParent) Repeat Select WaitEvent() Case EVENT_WINDOWCLOSE;If EventSource() = wndParent Then End EndSelect Forever
Cheers
Seb