No effect when setting windows properties after windows created #26322
Replies: 2 comments 2 replies
-
|
The code is written incorrectly. You add things like title and height, as parameters that are inside (not outside) of Check out other examples of using VUI:
Documentation for VUI (link). Can also output additional info about methods used: Run Example of usage: |
Beta Was this translation helpful? Give feedback.
-
|
In the source of ui.window.v: and the ui.window(...) function: while WindowParams is a helper struct: Everything is clear here,except when I tried to write a simillar test program to see whether I can change the property outside a struct (It should be): The result is as expected.But in the original ui example,the properties don't change. What's more,why below code compiled as it is lack of a parameter of WindowParams: Anybody help me please? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I started to practice v ui https://github.com/vlang/ui but was confused below code doesn't change anything regard windows properties like size and title.Was I missing something?
Beta Was this translation helpful? Give feedback.
All reactions