Porovnávané verzie

Kľúč

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

...

Windows control - Push button is used to generate a picture event after pressing the button. The event can be handled in the picture script.

Example

Example - Push button

To create a push button

  1. In the Drawing toolbar click the button Push button Push button.
  2. Point the mouse cursor to the position of the first displayer corner and click.
  3. Point the mouse cursor to the position of the diametric displayer corner and click.

...

Selection of an object to connect.
When you connect an object of the Structured variable you must define an item. Unique item position in the structured variable is defined by the column name (parameter Column) and the row number (parameter Row). For an object of the Value array you must define an item.

Control

...

The palette for button, as one of the only Windows controls contains element, has the tab Control . The tab allows to define an object, that will be directly controlled with no need to define the action in the picture script. Description tab enabled and enables direct control of objects after pressing the button without the need for the definition of a picture script. A more detailed description of the tab is given in the topic Connecting graphic object to control.

...

Specifies the name of the push 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 ",...".

...

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

Note relating to the D2000 Thin Client

Event The event handler of OnUserInput is not implemented in Thin Client.
For more rules see the page Drawing rules and object properties for the D2000 Thin Client.

Event Handler

...

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

...

Kotva
text
text
Text

A string , that will be displayed on the push button. 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.

...

If the parameter is checked, the push 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.

...

If the parameter is checked, the push 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.

...

  1. It works for dialog pictures and the subpictures of dialog-modal windows only.
  2. The button "OK" is to be created as the first picture element (ID = GO number = 1) - can be invisible. The button gets a message from the Enter key as defined for dialog windows in the Windows operating systemssystem.
  3. The button "CANCEL" is to be created as the second picture element "CANCEL" (ID = GO number = 2) - can be invisible. The button gets a message from the Esc key.
  4. Pressing the Enter and Esc keys for the buttons defined in this way is concerning the main picture defined as a dialog one or a subpicture of a dialog-modal picture.


Note relating to D2000 Thin Client

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

Bitmaps

Buttons enable displaying (according to the state they are in) 1-2 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 of for assigning bitmaps contains a selection filed of a bitmap (2) for the selected button state.

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. 

...

State selection is for some states (not for prohibited statestates) 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.  

Note: When using a color colour bitmap, the Windows system converts it to a monochromatic one, and therefore we recommend to use using monochromatic bitmaps to avoid distortion of the color colour bitmap.  

Note relating to D2000 Thin Client

It is not possible to align the bitmap in the button vertically in the Thin Client.Tenký klient

nepodporuje bitovú mapu pre zakázaný stav.  is The thin client does not support a bitmap for the disabled state is not supported in Thin Client.

...

The name of the used font is displayed in the unpacking list that contains the last used fonts for speeding up the selection. Clicking the button placed right opens a list of text fonts. A font selected from the list will be used for the button text. For more information on the text, fonts see the topic Text fonts.

The last parameter is color colour text (5) and its selection. If there is a letter D in the field, the default color colour from Windows will be used. 

...