|
|
|
|
- Overview of Static control
- Control in a window, in a page (static or dynamic) or in a report
- Creating a Static control
- Create a Static control in a window or in a report
- Creating an RTF Static control in a window
- Handling a Static control
- Typing the text of the Static control
- Content of Static control (report editor)
- Notes
Overview of Static control Control in a window, in a page (static or dynamic) or in a report A Static control is a control used to display a static text. The content of the control cannot be entered by the user. To apply effects to the displayed text, you have the ability to use: - The control style, by configuring the "Shadow" element.
- The "RTF" type to display a text in RTF.
- A specific animation (scroll or blink).
Remarks: - Static controls can also be configured with a display mask to automatically apply a format to the value that is assigned to them.
- You can configure different effects for the Static control in the "Style" tab of the control description window. You can:
- configure the border of the control. For example, this option allows you to display an image in a Static control.
The icon (to the right of the "Border" option) allows you to configure the shadow of the border. If a shadow is used, you can choose the X and Y offset, percentage of opacity, blur radius and shadow color. - set the characteristics of the font via the button. You can define:
- the line spacing,
- the character spacing,
- the text angle.
Creating a Static control Handling a Static control Typing the text of the Static control To type the text of the Static control: - Click the Static control in the editor. The input cursor is displayed.
- Type the text of the Static control.
For RTF Static controls (in a window or report), the format of each element can be defined via a toolbar.
Remark: The text of the Static control can also be edited in the control description window. - The content of a Static control can be typed in the editor or defined through programming.
- A Static control can be bound to an item in a data file. In this case, the control is used to view the content of the items in the data file.
- In the windows, Static controls include a display mask to automatically apply a format to the data assigned to them. This mask can be modified programmatically with the InputMask property.
Related Examples:
|
Unit examples (WINDEV): The Static control
[ + ] Using a Static control
|
|
Unit examples (WINDEV): Management of RTF
[ + ] Using the main functions for RTF management in a WINDEV application: - Load a file in RTF format - Save a file in RTF format - Find and select a word in an RTF text - Display a text in RTF format - Modify the characteristics of a selection (font, case, color, ...)
|
|
Unit examples (WEBDEV): HTMLClass property
[ + ] The property ..HTMLClass allows you to read and update the control's HTML attribute "class". This property lets you select the CSS Style applied on the control.
|
|
Sample components (WEBDEV): WW_CloudTags
[ + ] This example explains how to display a cloud of tags in a dynamic WEBDEV application. Indeed, on Internet, a site page responds more or less to a set of keywords. The purpose of this example is to explain how to display the keywords of a site in an area of the page by indicating the important keywords graphically. The keywords are represented as links of different sizes: the more important the keyword is, the larger the font is.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|