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
1 answer

How to get the code editor to automatically select a particular control

In VB, on a form's designer, I used to be able to double-click a control (say a button) and it would bring up the code with the middle dropdown box (towards top) automatically selecting the control (button) for me. Now it just stays stuck at…
2
votes
1 answer

Showing Related Data In A DataGridView

If anyone's used Access recently, you might recall that when it displays data for a table that has a relationship, a little expandable node appears next to each row. Clicking on it shows all of the data from other tables related to that row in-line,…
Merus
  • 8,796
  • 5
  • 28
  • 41
2
votes
1 answer

Proguard with custom control and custom StringProperty

I want to use proguard with a javafx application with some custom controls. I have a custom control that contains a poperty StringProperty textProperty = new SimpleStringProperty(this,"text"); public final StringProperty textProperty() {return…
Jawad El Fou
  • 313
  • 2
  • 11
2
votes
1 answer

vb.net controls in separate files

Short version: VB.Net Windows forms feature controls that are often dragged from the toolbox onto the form. The code for the control goes right into the form. Usually this is great, but is it possible to write the code for a UI control (like a…
nttaylor
  • 788
  • 3
  • 11
  • 25
2
votes
0 answers

Janusys.com or Janusus.net Website and Forum

is there anybody who preserved the old Website of the Janusys company. Mostly known for their GridEX Winforms control but they had a complete suite of Winform Tools. Their support was (up until 'bankruptcy') very good and gave much more info on how…
Sandor
  • 33
  • 4
2
votes
2 answers

Change color of DataGrid Cell WPF regarding Range

Hi I need to implement a function that if the value of the binding items is within the specific range cell color should be according to the range. I have been using Changing Background Color Of DataGrid Cell WPF 4 this works fine but it is for only…
Afnan Bashir
  • 7,319
  • 20
  • 76
  • 138
2
votes
1 answer

What's the best way for displaying GIF Animation Images in WPF?

I would like to display an animation gif such as loading... in my XAML as my procedure is progressing. I found out that this cannot be easily done in WPF as I loaded my Gif and it just shows the first frame. What are the best ways to display an…
ArMaN
  • 2,306
  • 4
  • 33
  • 55
2
votes
2 answers

Silverlight Databinding one control to another

I'm working in Silverlight. I've got a ListBox that's being loaded dynamically. In the listbox, i want to put a checkbox that's tied to the listbox's "selected" property. I can't quite figure out how this is done. Can anyone point me in the right…
Irwin
  • 12,551
  • 11
  • 67
  • 97
2
votes
1 answer

controls attribute in HTML is not allowing controls on the video

Hi I have tried to use the control attribute in 3 different IDE but it is not working in any of them. I am attaching a file showing my code. Please tell me my mistake. Started Again
Samar
  • 137
  • 5
2
votes
1 answer

Is there a .NET control out there to emulate the Word 2007 selection toolbar?

Contextual Toolbar http://img14.imageshack.us/img14/9729/word2007toolbar.gif I'd like to have a toolbar similar to the hover toolbar in Word 2007 (see picture) show up when I highlight text. Does this control exist (free or otherwise) or am I S.O.L.…
James Oltmans
  • 1,057
  • 13
  • 26
2
votes
0 answers

With BCM_SETIMAGELIST who destroys the HIMAGELIST?

I was looking at BCM_SETIMAGELIST but it's not clear who is supposed to destroy the HIMAGELIST? If the one who created it, could WM_NCDESTROY be used to simple BCM_GETIMAGELIST and destroy it or should you get it first then set it to nothing, like…
user3161924
  • 1,849
  • 18
  • 33
2
votes
2 answers

WPF layout, can I clean this up?

Just fyi, I am new to WPF. I am creating a sidebar in my WPF app and want rounded corners. Which I learned is not a property you can attach to a Grid. Also, I tried putting the textblocks in the border control, but the error message I got back said,…
kdub
  • 749
  • 2
  • 8
  • 19
2
votes
1 answer

Silverlight Panel OnChildAdded event?

I'm trying to derive from the Silverlight Panel control to add some custom logic whenever a control is added to the Panel. I can't seem to find an "OnChildAdded" event (Or something similar) on the Children collection. Does anyone have any…
Paul Bevis
  • 831
  • 1
  • 8
  • 16
2
votes
3 answers

Always show zoom controls in WebView

Is there any way to always show zoom controls in webview? I found this: Always show zoom controls on a MapView but that's for the mapview. I want them to always be visible. super.onCreate(savedInstanceState); …
user868426
  • 63
  • 2
  • 5
2
votes
1 answer

How to ensure a Step Function Control in GEKKO and confusion about MV_TYPE

I have a simple optimal control problem where I have to find a step function f(t) to maximize an objective functional (IMODE=6). Now f(t) is defined for t in [0, 10) such that f takes on 10 different equi-spaced values. (i.e. f(t)=f0 for 0 ≤ t < 1,…