Difference between revisions of "TGLabel"

From Gestinux Wiki
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
TGLabel is a very simple component !
 
TGLabel is a very simple component !
  
This is a TLabel, but the Caption property is searched in the language file.
+
This is a TCustomLabel with a Translate procedure, searching Caption and Hint properties in the currently selected language file.
  
If a key in this inifile is found in the Form Section for the component name, the value is assigned to the caption when the component is created. If not found the Caption is not changed.
+
If a key in this inifile is found in the Form Section for the component name + '.Caption' or '.Hint', the value is assigned to the property. If not found the Caption or Hint are not changed.
  
This mecanism is used in all other data entry components.
+
Not all properties of a TLabel are published and some properties have different default value. Initializations are different, according to most frequent usages in Gestinux.
 +
 
 +
The same mecanism is implemented in all other [[Gestinux_util#Visual_components|data entry components]], through TCustomGLabelEdit, but TGLabel is not a descendant of the latter.
 +
 
 +
See also : [[Gestinux_util#Gestinux_util#Gestinux_util#Display_only_components|Display only components]]

Latest revision as of 13:26, 11 March 2013

TGLabel is a very simple component !

This is a TCustomLabel with a Translate procedure, searching Caption and Hint properties in the currently selected language file.

If a key in this inifile is found in the Form Section for the component name + '.Caption' or '.Hint', the value is assigned to the property. If not found the Caption or Hint are not changed.

Not all properties of a TLabel are published and some properties have different default value. Initializations are different, according to most frequent usages in Gestinux.

The same mecanism is implemented in all other data entry components, through TCustomGLabelEdit, but TGLabel is not a descendant of the latter.

See also : Display only components