Questions tagged [controls]

Use this tag for programming scenarios related to controls (interactive elements of the user interface).

A control is an interface element that a computer user interacts with.
Common controls include:

  1. Window A rectangle that represents a "window" into a document, form, or design area.

  2. Text box A box in which to enter text or numbers.

  3. Button An equivalent to a push-button as found on mechanical or electronic instruments.

  4. Hyperlink Text with some kind of indicator (usually underlining and/or color) that indicates that clicking it will take one to another screen or page.

  5. Drop-down list A list of items from which to select. The list normally only displays items when a special button or indicator is clicked.

  6. List box A GUI widget that allows the user to select one or more items from a list contained within a static, multiple line text box.

  7. Combo box A combination of a drop-down list or list box and a single-line textbox, allowing the user to either type a value directly into the control or choose from the list of existing options.

  8. Check box A box which indicates an "on" or "off" state via a check mark ☑ or a cross ☒. Sometimes can appear in an intermediate state (shaded or with a dash) to indicate mixed status of multiple objects.

  9. Radio button A button, similar to a check-box, except that only one item in a group can be selected. Its name comes from the mechanical push-button group on a car radio receiver. Selecting a new item from the group's buttons also deselects the previously selected button.

  10. Cycle button A button that cycles its content through two or more values, thus enabling selection of one from a group of items.

  11. Datagrid A spreadsheet-like grid that allows numbers or text to be entered in rows and columns.

  12. Slider A bar that allows users to make adjustments to a value or process throughout a range of allowed values.

8394 questions
2
votes
2 answers

A wxPython timeline widget

I am looking for a certain wxPython widget to use in my program. I hope that something like this exists and that you might know where to find. I will try to describe the functionality I'm looking for: Imagine something like the widget that Audacity…
Ram Rachum
  • 84,019
  • 84
  • 236
  • 374
2
votes
1 answer

WPF - Getting a collection of all controls for a given type on a Page?

I'm trying to get a list of all controls of a given type on a given Page, but I'm encountering problems. It seems that it's possible that the VisualTreeHelper only returns controls that have been loaded? I tried turning off Virtualization, but…
Sonny Boy
  • 7,848
  • 18
  • 76
  • 104
2
votes
1 answer

Cocoa: Time Picker

Is there a generic control for picking and selecting time for Cocoa application (Mac Application Development)? For example, consider the case of a stop watch. The watch starts from 00:00:00. The NSDatePicker seem to support "00:00:00 AM/PM" format…
Mustafa
  • 20,504
  • 42
  • 146
  • 209
2
votes
1 answer

Public properties are always null in ViewDidLoad in a custom TabBarController in MonoTouch

I've been working on a class derived from UITabBarController. At the most basic level, what I'm trying to do is add a BackgroundColor property, and other public properties, that I can instantiate in my AppDelegate when I'm constructing my…
Daniel Crenna
  • 3,326
  • 1
  • 24
  • 34
2
votes
1 answer

Fanned out cards in WPF- performance issues

In my WPF app I have a control representing a pack of 20 cards (each about 150x80 px) that fan out in an arc, so they're all slightly overlapping in the centre of the arc. When the control is added there's an animation to fan them out. After that,…
user814425
  • 605
  • 8
  • 19
2
votes
1 answer

How do I make a media player control notification in Gtk?

In Rhythmbox (GNOME's music player), when it's playing music, you can open the notifications panel and control the music playback from there. Here's a screenshot. The playback controls are bordered in orange; they have a little music note…
Sylvester Kruin
  • 3,294
  • 5
  • 16
  • 39
2
votes
3 answers

Set focus on another control when a key pressed without code-behind

I'm implementing something like an autosuggestion control: I have a user control that contains a TextBox and a ListBox. When the user enters text I'm handing it with System.Windows.Interactivity behaviors and filling the ListBox with some…
Niccolo
  • 401
  • 1
  • 6
  • 15
2
votes
1 answer

Android: How to add button to "Control Center"

I recently downloaded an app and it added a toggle button on the "Control Center" (I don't know how this section is called). I am trying to develop an app and this feature would really help me, but I can't seem to find anything on how to implement…
Gabriel Amorim
  • 370
  • 2
  • 13
2
votes
2 answers

Is possible to build a custom control without an ASP.NET Server Control project?

I have a web application in Visual Studio 2008, and I have found an article explaining how to extend GridView creating an inherited class. If I create that class inside the same project, is possible to use my new grid? How? If it isn't possible,…
eKek0
  • 23,005
  • 25
  • 91
  • 119
2
votes
1 answer

how to handle events: array of controls with c sharp (old com control)

I'm trying to work with an old com control (a control array), the following samples: 5435293, 39541, 5497403, 5738092 explain (or at least what I understand) how to handle events of control arrays with .net controls, so they have Sender and…
Jonathan B
  • 169
  • 1
  • 1
  • 11
2
votes
1 answer

Best control to draw in

I have a VB app which draws primitive shapes (lines, filled rectangles etc.) into a picturebox control (from its paint event). I've since found out that a picturebox is probably the worst control to use for this. I've also found out that it's better…
ajordison
  • 55
  • 6
2
votes
0 answers

DQN with multiple actions taken at same time-step for differents joints for robot control

I am trying to teach a double pendulum fully actuated to perform a swing-up maneuver and keep the position if it reaches it. I previously trained a single pendulum with DQN and it learned the policy well in just a couple of hours of training. Now…
2
votes
3 answers

How to set focus on NumericUpDown control?

I am trying to set focus on NumericUpDown element from WPFs extended toolkit. I heve following XAML
Samvel Siradeghyan
  • 3,523
  • 3
  • 30
  • 49
2
votes
1 answer

I use gekko for optimal control of complex network, but if often can't extract hessian matrix (stacked in this step)

I am doing an optimal control problem of complex network of a variation model of SIR model. The network contains 5000 nodes and I will count the number of nodes of each degree (from 4 to 187). The txt file is the file of degrees, the first column is…
Hang Zhou
  • 21
  • 1
2
votes
1 answer

WPF ListBox Custom Control issues

In WPF, I am creating a simple custom control for my TODO program. It should do the following: Show up as a ListBox with an Add and Remove button above it. The Add and Remove buttons should add and remove items from my base class. I have this…
Shawn
  • 165
  • 5
  • 13