Window position center, upper third

asked 2009-01-07 18:23:35 +0800

dastultz gravatar image dastultz
797 8

I am familiar with myWindow.setPosition("center,center");. Messagebox.show() will place a window centered left-to-right and at 100px from the top. I would like to make my own windows pop up at the same position, or better yet, at the "upper third" rather then "center" position. Is this possible? Feature request?


delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-01-08 06:55:59 +0800

dennis gravatar image dennis
3669 1 6

third ? I think you mean "center 100px" ...
please post feature request..

link publish delete flag offensive edit

answered 2009-01-08 11:47:12 +0800

dastultz gravatar image dastultz
797 8

Yes, by upper third I mean this: suppose you draw a single horizontal line in the middle of the page, this is the "center" used by setPosition. If you draw two horizontal lines equally spaced, you divide the screen in three sections. I'd like to have my window be centered on the upper line, probably with a minimum Y position of 1px.



link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2009-01-07 18:23:35 +0800

Seen: 277 times

Last updated: Jan 08 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More