How does NSPointMBS work? x coordinates work fine. But something isn't working 
with y.

I'm trying to show an attached window. This is okay for a button on a simple 
window. But I can't make it work on a containercontrol. Normally I use 
TrueBoundary. But I think the NSPoint works backward.

Here are my tests:

  dim p as NSPointMBS
    p = new NSPointMBS(theControl.left + theControl.Width/2, theControl.top + 
theParentWindow.Top + theControl.Height/2)

The attached window has a fixed position independent of the top of the window!

    p = new NSPointMBS(theControl.left + theControl.Width/2, theControl.top + 
theControl.Height/2)

Pretty much at the bottom of the container control.

    p = new NSPointMBS(theControl.left + theControl.Width/2, theControl.top + 
200 + theControl.Height/2)

This seems to work in this case. 200 seems to be the distance of the control to 
the bottom of the window.



Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals

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

Reply via email to