Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

Windows control - Radio button

Windows control - Radio The radio button is used to select one of several predefined options. Radio The radio button is not used individually, you can use one radio button for one possible optionsoption. Set A set of radio buttons connected to the same object is understood as a group. The sample below shows two groups - Favourite newspapers and Preferred TV stationstations.

Example

Example - Radio button

To create radio button

...

Warning: In some cases when a group of radio buttons is not defined as described above, an infinite loop in Windows systems may occur during the evaluation of radio buttons and it may cause blocking a block the process D2000 HI process.


Radio button parameters are being configured in the palette Connect object through the following tabs:

...

Kotva
pripojeny_objekt
pripojeny_objekt
Connect

...


Connected object

Selection of an object to connect. The object determines which one of the radio button buttons is active and vice versa - the value of the object is being changed when the user select selects any of the radio buttons. The value of the object is equal to the ordinal number of selected radio button buttons within its group. The object must be of integer type.

...

When you connect an object of Structured variable you must define whose item will be connected to the radio button. Unique item position in a structured variable is defined by the column name (the parameter Column) and the row number (the parameter Row). For an object of the Value array you must define which array item will be connected to the radio button.

...

Specifies the name of the radio button in the form of a reference variable for use in the picture script.

...

Assignment of application data (metadata) to a graphic object. If the object contains some metadata, the name of the first record will be displayed in on the button. Multiple records are indicated by ",...".

Event

The list box allows the user to select a an active picture event for the radio button. The list box contains the following active picture events:

...

Text to display as a tooltip when the user points the mouse cursor to the radio button in the picture opened in process the D2000 HI process.
Possibility to use the Dictionary (to open press CTRL+L).

URL

Definition of URL address to open a web page from a picture. The address may also be set also in the picture script by the function %HI_SetOBJURL.

Properties

...

Image RemovedImage Added

Text

Definition of the string, that will be displayed beside the radio button. Possibility to use the Dictionary (to open press CTRL+L). The string may also display current (so-called live) values of the object defined by the parameter Connected object but such strings must be defined in a special format - for detailed information see the chapter Format masks.
You can also define a hotkey - underlined character. To create an underline character enter the character & (ampersand) before the required character. The hotkey (ALT+hotkey) performs the same effect as clicking the button.

Note: Using hotkeys does not work in pictures of MDI type (the parameter Window type - the option MDI window) , if this picture is not a subpicture.

...

Appearance of the checkbox - classic appearance (see the picture in Example above - the checkboxes in the "Favourite newspaper" part) or button appearance (see the picture in Example above - the buttons in the "Favourite TV station" part).


Visible

If the parameter is checked, the radio button will be visible after first opening the picture in process the D2000 HI process. The parameter can be controlled from the script using the function %HI_SetVisible.

Disabled

If the parameter is checked, the radio button will be disabled after first opening the picture in process the D2000 HI process. The parameter can be controlled from the picture script using the function %HI_SetEnable.

Kotva
skupina
skupina
Group

The parameter allows you to set the radio button as the first control of a group of Windows controls. If the window type of the active picture is set to Dialog (see the topic Picture settings), the user may use the arrow buttons to switch among the radio buttons within one group. You must only define the first control within the group (checking the parameter Group) and the first control out of the group.
For more information on the order of Windows controls see the topic Order of Windows controls.

Transparent

Transparent background of the checkbox.

Note: Transparent background is used for displaying on the monitor only (not for print).

Bitové mapy

Tlačidlá umožňujú zobrazovať (podľa stavu v ktorom sa nachádzajú) 1-3 bitové mapy. Pri použití bitových máp sa neberie do úvahy parameter transparentnosť, tlačidlo sa kreslí ako pri použití parametra "Ako tlačidlo" s tým rozdielom, že základné (defaultne) umiestnenie je vľavo a nie v strede.

Okno priradenia bitových máp obsahuje pole výberu bitovej mapy (2) pre vybraný stav tlačidla.

Image Removed

Toto pole obsahuje meno bitovej mapy, tlačidlo otvárajúce okno výberu a tlačidlo zrušenia výberu (x).  Zrušenie pripojenia je možné aj zadaním neexistujúceho mena bitovej mapy.

Pod priestorom výberu sa nachádza pole bitových máp pre možné stavy tlačidla,

Image Removed

kde (3) určuje, s ktorým stavom sa pracuje v poli výberu a (4) naznačuje typ stavu (not selected, selected and disabled). Ukážka jednotlivých stavov:

Image Removed

Bitmaps

Buttons enable displaying (according to the state they are in) 1-4 bitmaps. When using bitmaps, the parameter transparency is not taken into account, the button is drawn just like using the parameter "How button" but the basic (default) position is on the left side and not in the middle.

The window for assigning bitmaps contains a selection filed of a bitmap (2) for the selected button state.

Image Added

This field contains the name of a bitmap, the button opening the selection window and the button ending the selection (x). Ending the connection is possible also by entering the non-existing name of the bitmap. 

Under the selection field, there is a field of bitmaps for possible button states, 

Image Added

where it (3) defines with which state we will work in the selection field (4) and suggests a state type (not selected, selected, disabled, disabled selected). An illustration of individual states:

Image Added

State selection is for some states (not for prohibited states) possible also by clicking into a display of the used bitmap; and the start of the selection by double-clicking into a display of the used bitmap.  Výber stavu je pre niektoré stavy (nie pre stav zakázaný) možný ak kliknutím do zobrazenia použitej bitovej mapy. A štart výberu dvojitým kliknutim do zobrazenia použitej bitovej mapy.

Note relating to D2000 Thin Client

Parameter Bmp is not supported in Thin Client.
For more rules see the page Drawing rules and object properties for the D2000 Thin Client.

Bmp+Text

If a bitmap is defined, the text location is a bitmap and the text is displayed next to it.

Bmp/Text

If a bitmap is defined, the text location is the bitmap and the text below it is displayed with it.

Push like

Appearance of the selection key - standard appearance (see the above Example - buttons in the "Favourite newspaper" section) or a pressable button (see the above Example - buttons in the "Favourite TV channel" section).

Font

Clicking the button placed right opens a list of text fonts. A font selected from the list will be used for the radio button text. For more information on text fonts see the topic Text fonts.

...