New Suggestions After More Experimenting
Based on more experiments with creating different kinds of GUIs, the following came up and hopefully can be fixed/added:
- [ ] Table and List widget need text_align/"tAlin" to be adjustable, not just fixed to the center.
You can have text in the array that are of different lengths, and it can look better if moved to the left or right.
- [x] Group widget needs adjustable font size.
The text can be too big for the GUI and other widgets.
-
[x] Hyperlink widget needs adjustable font size too.
-
[ ] Textarea and Textbox need multiline and word_wrap?
It appears that V UI has this option. Without these features, long lines of text need to be controlled by manual returns and they don't adjust to the size of the GUI when resized.
- [x] Button needs both click (fnclk) and unclick (fnucl) options.
This is because a user may want to do things like have the button color or background change when pressed down or do various other things until or when unclicked.
5 is done.
However i recommend to don't trust unonclick event. It will not be triggered with keyboard. To avoid accessibility issues, i recommend checking the event_details.triggerer firstly. If it's keyboard, you can avoid applying custom styles or trigger unclick function manually.
https://github.com/malisipi/mui/blob/763b84a30baa7ca68120194443de3051dc8c92ba/examples/changing_background_button.v#L1-L21
Also i'm sorry about the delay. I haven't much time to improve this library by university entrance exam.
I will implement 1, 2 and 3 asap.
Also I want to implement 4. However 4 is too complex to implement with limited time. If i have free time, i will implement it.
I will implement 1, 2 and 3 asap.
Good to see your consideration and continual efforts (like the draggable frame).
The changes to 1 (table and list), 2 (group), 3 (hyperlink/link), and their corresponding functions in widget.v would be best for greater usability of MUI. Presently, certain GUIs look odd, without such changes being implemented.
Also I want to implement 4. However 4 is too complex to implement with limited time. If i have free time, i will implement it.
This one is not too much of an issue, unlike the others, as can work around it. I guess it would be something nice for the future.
5 is done.
Yes, this one is working. And the extra info and example is good too.
2 and 3 is supported by https://github.com/malisipi/mui/commit/619aa7c9f93d3793d232c17536cc92c1d86c3b0c commit .