cdoty Posted June 28, 2021 Share Posted June 28, 2021 Are there plans to add alignment widgets to the toolkit? Toolkits, such as NanoGUI, have layout widgets that control how the contained widgets are laid out and their centering. Quote Link to comment Share on other sites More sharing options...
Josh Posted June 28, 2021 Share Posted June 28, 2021 Have you seen this?: https://www.ultraengine.com/learn/CPP/Widget_SetLayout Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
cdoty Posted June 28, 2021 Author Share Posted June 28, 2021 Yes I have watched the video. The "Bottom Panel" gives me the parent arrangement I want, but now I have to go in an manually calculate the button positions within that panel, and keep that up to date as the UI is resized. I think I see how I can accomplish what I am after. If I subclass Panel, I can create a HorizontalPanel and VerticalPanel that will recenter the content on a call to UpdateLayout(?). Quote Link to comment Share on other sites More sharing options...
Josh Posted June 29, 2021 Share Posted June 29, 2021 You could also use ListenEvent to catch the window resize event and then adjust the shape of whatever widgets you want to modify. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
cdoty Posted June 29, 2021 Author Share Posted June 29, 2021 Does that event happen on the initial layout? Quote Link to comment Share on other sites More sharing options...
Josh Posted July 1, 2021 Share Posted July 1, 2021 This is a good question. It may on some systems, and it may under some conditions, like if the specified size of the window is bigger than the maximum size, and it has to be adjusted. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
klepto2 Posted July 5, 2021 Share Posted July 5, 2021 Hi! I was on vacation the last 2 weeks so i couldn't reply earlier. Take a look here: I am currently working on a full featured layout system with Container Gadgets which will work like (kind of) the way you can layout things in xaml or in other GUI libraries. I will post more info on that new system in a later blog entry but in general it should work the way you described. There will be Container, Grid, Flow, Stackpanel and other widgets to control the layout as well as additional layouting features (Alignment, Margin, Padding, etc.) 1 Quote Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI Link to comment Share on other sites More sharing options...
Josh Posted July 5, 2021 Share Posted July 5, 2021 7 hours ago, klepto2 said: I was on vacation the last 2 weeks so i couldn't reply earlier. Take a look here: Found the European! Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.