Questions tagged [user-interface]

User Interface (UI) is the system through which people interact with a computer. This tag can be used for UI-related programming questions. Note that there's a separate Stack Exchange site for User Interfaces, Interactions with the Computer and User Experience design: https://ux.stackexchange.com.

User Interface (UI) is the system through which people interact with a computer. This tag can be used for UI-related programming questions.

Note that there's a separate Stack Exchange site for User Interfaces, and Interaction- and User Experience design.

References

56892 questions
98
votes
7 answers

How to disable user interaction while ProgressBar is visible in android?

I am using a custom ProgressBar. Now while a task is going on, I am showing the progress bar, but user can still interact with the views and controls. How do I disable the user interaction on whole view just like a ProgressDialog does , when it is…
intellignt_idiot
  • 1,962
  • 2
  • 16
  • 23
98
votes
6 answers

An algorithm to space out overlapping rectangles?

This problem actually deals with roll-overs, I'll just generalized below as such: I have a 2D view, and I have a number of rectangles within an area on the screen. How do I spread out those boxes such that they don't overlap each other, but only…
Extrakun
  • 19,057
  • 21
  • 82
  • 129
98
votes
8 answers

How can I schedule updates (f/e, to update a clock) in tkinter?

I'm writing a program with Python's tkinter library. My major problem is that I don't know how to create a timer or a clock like hh:mm:ss. I need it to update itself (that's what I don't know how to do); when I use time.sleep() in a loop the whole…
Diego Castro
  • 3,458
  • 4
  • 35
  • 42
98
votes
12 answers

How to display a progress indicator in pure C/C++ (cout/printf)?

I'm writing a console program in C++ to download a large file. I know the file size, and I start a work thread to download it. I want to show a progress indicator to make it look cooler. How can I display different strings at different times, but at…
xmllmx
  • 39,765
  • 26
  • 162
  • 323
97
votes
2 answers

How to target all controls (WPF Styles)

Can I specify a style that applies to all elements? I tried But it did nothing
Jiew Meng
  • 84,767
  • 185
  • 495
  • 805
97
votes
9 answers

Windows GUI: WPF or WinRT (2015+)

I am trying to get an overview of the different technologies, to use when building GUI's in the Windows World. For context, I am building a little 2d platform multiplayer game. (Just for learning purpose..) My teacher says that he think that WPF is…
Alf Nielsen
  • 1,361
  • 1
  • 10
  • 19
97
votes
7 answers

Android - Standard height of toolbar

I want to create a toolbar in my app, and I am wondering what is the standard height for the toolbar in android? I want it to be big enough for a finger, but not huge. Is there standard size?
nrofis
  • 8,975
  • 14
  • 58
  • 113
96
votes
7 answers

Accessing UI thread handler from a service

I am trying some thing new on Android for which I need to access the handler of the UI thread. I know the following: The UI thread has its own handler and looper Any message will be put into the message queue of the UI thread The looper picks up…
iLikeAndroid
  • 1,106
  • 1
  • 8
  • 6
96
votes
9 answers

Can one executable be both a console and GUI application?

I want to make a C# program that can be run as a CLI or GUI application depending on what flags are passed into it. Can this be done? I have found these related questions, but they don't exactly cover my situation: How to write to the console in a…
BCS
  • 75,627
  • 68
  • 187
  • 294
96
votes
2 answers

Datagridview - remove part before the first column

I was wondering if when using the datagridview control you can remove the thing that looks like a column before the 1st column. I think its used to select rows but not sure what its called.
Grant
  • 11,138
  • 32
  • 94
  • 140
95
votes
3 answers

"Always on Top" Windows with Java

In Java, is there a way to have a window that is "Always on top" regardless if the user switches focus to another application? I've searched the web, and all of the solutions lean to some sort of JNI interface with native bindings. Truly this…
Laplie Anderson
  • 6,345
  • 4
  • 33
  • 37
94
votes
8 answers

How to remove minimize and maximize buttons from a resizable window?

WPF doesn't provide the ability to have a window that allows resize but doesn't have maximize or minimize buttons. I'd like to able to make such a window so I can have resizable dialog boxes. I'm aware the solution will mean using pinvoke but I'm…
Nidonocu
  • 12,476
  • 7
  • 42
  • 43
94
votes
13 answers

How to change color of hamburger icon in material design navigation drawer

I am following this example http://www.androidhive.info/2015/04/android-getting-started-with-material-design/ and in this example it is showing hamburger icon white,i want to customize it and make it black,but i am not able to find anything to how…
Aditya
  • 1,508
  • 1
  • 19
  • 37
91
votes
19 answers

Common Web UI Styles

I have to present a prototype of an web app in the following days to one of my clients, the thing is I'm not so good at CSS and worst of all I'm almost never happy with the results I get. Coding the business logic poses no challenge to me, the UI…
Alix Axel
  • 151,645
  • 95
  • 393
  • 500
90
votes
13 answers

How do I get rid of an element's offset using CSS?

I've got a positioning problem with some elements, upon inspecting it IE8 Developer tools it shows me this: Now I'm pretty sure my problem is that 12 offset, but how do I remove it? I can't find any mention of a CSS offset property. Do we need an…
m.edmondson
  • 30,382
  • 27
  • 123
  • 206