Questions tagged [user-interface]
The part of the application that users directly interact with. Use this tag for reviews of code that defines how an application's user interface works and looks.
146 questions
6 votes
3 answers
567 views
Menu user interface class in C++
I wrote a menu user interface in C++. What do you think about my code? What can I improve? Am I missing some better practices? main.cpp ...
5 votes
1 answer
144 views
Font Selector Combobox Design in C#
A font selector combobox which contains all the values from the InstalledFontCollection enumeration is created, and the font of each item is same as its name. The ...
2 votes
1 answer
143 views
How to manage array of states effectively?
I have a working code to have 2 search bars with dropdown suggestions, selectable by both mouse and arrow keys in TypeScript and Fresh/Preact. In there I have to explicitly declare individual hooks ...
3 votes
2 answers
356 views
Truncating/abbreviating strings in the middle with an ellipsis (…) (or other) separators with a fixed character limit
Problem For some user-facing string, I want to truncate it to some given maximum length (also useful for file name/path lengths on Windows etc.). However, I want to do it a little more elaborately ...
2 votes
1 answer
97 views
Clock time validation app, cognitive exercise, minimal viable product
How to improve this code, how to make it accessible to get user feedback? This is a minimal clock time validation app. There is a clock face and the user is asked to validate the time the clock hands ...
0 votes
0 answers
78 views
Enable a textbox when the previous one is no longer empty
I've written this JavaScript code, which disables textboxes if the previous textbox is empty. This is so people enter the text in order — write first in the first textbox, only then the second textbox ...
3 votes
1 answer
271 views
Responsive Navigation with hamburger menu
This script creates a hamburger menu when the window is resized. It will also create a sticky navigation when the window is scrolled down, which will also create a hamburger menu when the window is ...
3 votes
1 answer
189 views
Newspaper Bill Calculator CLI with Python (2 of 3, CLI)
Code is posted after explanation. Due to the size of the project, this is being posted in three separate posts. This also ensures each post is more focused. Post 1 of 3, Core: Newspaper Bill ...