-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
How do I automatically flow non-text to the current width of a window? #404
Comments
Hello Zac and sorry for my late answer, You can get the current window width with GetWindowWidth(). To handle that automatically is however a desirable feature that hasn't been added yet but I'd like to add it someday. |
This old issue also relates to the older #97 |
any chances this will be bumped up in priority? |
I might be able to look into it in September. One tricky thing is that it will probably change the usage of Currently code calls What I imagine we might head to is to replace both with a new more fully-featured function, e.g. It also relate to #395 for which I once had a semi-working stash but I wasn't happy with the code then. |
I want to have a bunch of things (imagebuttons to be specific) and have them automatically turned into rows based on the actual size of the window (or some container).
If the window is wide enough, they would all be on the same column and if the window is narrow enough they would be all down a single row.
Basically spread as wide as possible given the current window, but then overflow to a new line as necessary.
If I needed to, I could do the math myself, but I don't know how to get the current window / container width.
Thank you.
The text was updated successfully, but these errors were encountered: