Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styles will not allow to position a window #28

Closed
IanTrudel opened this issue Jan 14, 2015 · 4 comments
Closed

Styles will not allow to position a window #28

IanTrudel opened this issue Jan 14, 2015 · 4 comments

Comments

@IanTrudel
Copy link
Collaborator

IanTrudel commented Jan 14, 2015

Shoes App, Window and Dialog cannot be positioned using styles such as :left and :top as demonstrated in the following code snippet.

Shoes.app(:title => "Window Positioning", :left => 0, :top => 0) {}
@ccoupe
Copy link

ccoupe commented Jan 14, 2015

It hope it doesn't work in Linux too. I don't consider this a bug. Developers have a habit of too large windows (as you've seen) and it they use abs position its way too easy the get a window that can't be closed or resized or dragged. It would be nice if Shoes would offset it's own windows by a title bar height but I suspect that's not as easy it sounds.

@IanTrudel
Copy link
Collaborator Author

You have words of wisdom. There are many things developers should not do but shall we decide for them? In any case, there are many styles not supported in Shoes App but yet not clearly expressed in the Shoes Manual. Could be low priority?

Here is a scenario where positioning does make sense:

A user uses an application written in Shoes and personalize it to his or her tastes, including resizing and moving the window and then save it as preferences. The applications can remember the preferences next time it is started and reposition/resize accordingly.

@ccoupe
Copy link

ccoupe commented Jan 14, 2015

I don't know about my wisdom but Linux windows managers (and there are many of them) control windows positioning, not the app. Fullscreen is only a hint or polite request to the windows manager. Shoes has no knowledge of multiple monitors for example or which one it's displaying on. You'd want to save that info in your use case. If Gtk2 (not 3) Linux and Windows can provide that level of information and you can get it from OSX and can be abstracted cross platform then you could build something in Shoes that does this.

@IanTrudel IanTrudel added the Low label Jan 14, 2015
@IanTrudel
Copy link
Collaborator Author

Another scenario:

An application requires a toolbar in similar fashion as in Photoshop or Gimp. Gimp used to have multiple floating windows. Positioning is absolutely necessary in such applications.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants