mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 06:05:58 -06:00
[GH-ISSUE #152] Simple StackPanel widget as in WPF(C#) ? #65
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/ultimatepp#65
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ASHIT-AXAR on GitHub (Mar 19, 2023).
Original GitHub issue: https://github.com/ultimatepp/ultimatepp/issues/152
please, i need simple sizing and positioning logic, like StackPanel widget in WPF.
current sizepos() logic is not so easy for begginers to figure out the look of the app. specially when not using layoutdesigner.
eventually i end up wasting more time on sizing and testing widgets in the window rather than actually developing the app.
you just put the widgets in the panel, simply set the width and height of the widget and it does the rest.
@mirek-fidler commented on GitHub (Mar 20, 2023):
What is your desired outcome? Buttons in a column? (That is what docs for
StackPanel show as an example, but I bet it is more complicated than that).
Mirek
On Sun, Mar 19, 2023 at 10:19 PM ASHIT-AXAR @.***>
wrote:
@M0untacir commented on GitHub (Mar 22, 2023):
I made something similar to wxWidgets grid sizer out of Splitter Ctrl. You can specify the number of columns and the rows will be added depending on the number of added Ctrls. GridLayout can be nested as you wish for complex grid layouts.

GridLayout
@ASHIT-AXAR commented on GitHub (Mar 26, 2023):
@M0untacir Nice, thank you thank you thank you. that's what i needed.
initially i thought i can base it on ArrayCtrl, so it was SplitterCtrl. hmm
it's orientation is currently vertical, but you made it such it can be easily used as Vertical and Horizontal Panel with a little modification.
actually i didn't expect i'll see a solution this soon.
you provided a complete showcase. let me test it. i'll continue this in it's own repo
they should include this component built in U++ 👍🏼
@ASHIT-AXAR commented on GitHub (Mar 26, 2023):
@mirek-fidler not just buttons, a mixed of any components.
actually the StackPanel logic is simple, but there is more than that.
it's a powerful container to organize components in a easy to understand way.
@M0untacir commented on GitHub (Mar 29, 2023):
The SplitterCtrl was the easiest route.
Thank you, glad i could help