This will give you a global point:
myButton.localToGlobal( new Point( myButton.x, myButton.y ) );
Notes:
* localToGlobal shold be invoked from the button's inmmediate parent (hbox).
* this.globalToLocal needed to translate the obtained coords for the app
* use contentToGlobal and globalToContent instead to avoid problems with padding from the hboxes
* localToGlobal shold be invoked from the button's inmmediate parent (hbox).
* this.globalToLocal needed to translate the obtained coords for the app
* use contentToGlobal and globalToContent instead to avoid problems with padding from the hboxes
No comments:
Post a Comment