ui
ui copied to clipboard
How to make a window not realizable?
Hi,
I love this project since it provides native UI outlook. My question is, when I make up a window based on it, I could resize it by dragging it edges and then the layout inside the window is shifted which looks ugly. How could I prevent this? I check the ui and libui header files and repository issues, there is no answer.
Thanks.
PS. Is there any confirmation message box widget, which has two buttons - "YES" or "NO" ?
I haven't implemented either yet, sorry. But what do you mean by resizing it makes it look upgly?
I mean, if I put widgets in grid, they are in position like this:
| button 1 | text1 |
Then I resize the edge, button 1 and text 1 are far away.
| button 1 | text1 |
Or
| button 1 | text1 |
Or, I have dynamically set long text, the outlook would look strange
| button 1 | text1text1text1text1text1text1 | | button 2 | text2 |
here I perfer being "text1text1..." instead
And what type of control is text1?
ui.NewLabel. Whatever control type, resizing window will make it float I guess ...
Right, uiLabel doesn't have wrapping or ellipses yet either, sorry about that.
Thank you andlabs