Server Framework - Class Properties

TWebControl.Alignment

Controls the horizontal alignment of the text within the web control.

Use Alignment to specify how the text of the web control is placedwithin the web control.

POSSIBLE VALUES:taLeftJustify, taRightJustify, taCenter

Defined in: SystemControls

Property TWebControl.Alignment: TAlignment;

TWebControl.BorderColor

Specifies the color of the web control border.

Use BorderColor to specify the color of the web control border.

Defined in: SystemControls

Property TWebControl.BorderColor: TCOlor;

TWebControl.BorderSides

Specifies the appearance of the web control border.

Use Style to specify the style of the left, right, top, and bottomborders of the web control.

Defined in: SystemControls

Property TWebControl.BorderSides: THTMLBorderSides;

TWebControl.BorderStyle

Specifies the appearance of the web control border.

Use Style to specify the style of the left, right, top, and bottomborders of the web control.

Possible values are: bsSingle, bsDotted, bsDashed, etc.

WARNING:If the default style bsNone is specified, no border is drawn,regardless of any specified BorderWidth.

Defined in: SystemControls

Property TWebControl.BorderStyle: TBorderStyle;

TWebControl.BorderWidth

Specifies the width, of the web control border.

Use BorderWidth to specify how wide the border around the web controlshould be. A value of 0 means no border should appear.

WARNING:The BorderWidth property has no effect if the BorderStyle property isset to bsNone.

Defined in: SystemControls

Property TWebControl.BorderWidth: Integer;

TWebControl.CanGrow

Specifies how to treat content that exceeds the height and widthof the web control.

Use CanGrow to specify how content should be displayed within theweb control.

When CanGrow is Yes, the height and/or the width can increase toaccommodate the contents should that be required, when CanGrow is No,the contents are clipped to the size of the web control.

If CanGrow is Scroll then the web control displays ScrollBars if thethe contents requires it.

NOTE:The CanGrow and the CanShrink properties influences boththe behavior and value of the DynHeight property.

This property also controls the overflow style attribute in CSS.

If CanGrow is Scroll then \{overflow: auto\}, otherwise \{overflow: hidden\}.

Defined in: SystemControls

Property TWebControl.CanGrow: TCanGrow;

TWebControl.CanShrink

Controls the dynamic sizing behavior of the web control.

Use CanShrink to specify if the web control should be allowed to reduceits height and/or width to the size of the contents.

NOTE:The CanGrow and the CanShrink properties influences boththe behavior and value of the DynHeight property.

Defined in: SystemControls

Property TWebControl.CanShrink: Boolean;

TWebControl.Color

Specifies the background color of the web control.

Use Color to specify the background color of the web control.

Defined in: SystemControls

Property TWebControl.Color: TCOlor;

TWebControl.Enabled

Controls whether the web control responds to mouse, keyboard, and other events.

Use Enabled restrict user access to the web control.

If Enabled is set to False, the control is disabled and appears dimmed.

The control ignores mouse, keyboard, and other events.

If Enabled is True, the control is no longer dimmed, and the user canaccess it normally.

Defined in: SystemControls

Property TWebControl.Enabled: Boolean;

TWebControl.Font

Controls the characteristics of text displayed in the the web control.

To specify characteristics of the font,change the value of one or more of the properties of the TFont record.

Defined in: SystemControls

Property TWebControl.Font: TFont;

TWebControl.Format

Indicates the position of the web control in its parent's tab order.

TabOrder is the order in which child web controls are visited when theuser presses the Tab key. The web control with the TabOrder value of 0is the control that has the focus when the form first appears.

Initially, the tab order is always the order in which the controls wereadded to the form. The first control added to the form has aTabOrder value of 0, the second is 1, the third is 2, and so on.

Change this by changing the TabOrder property.

Defined in: SystemControls

Property TWebControl.Format: String;

TWebControl.Height

Specifies the vertical size of the web control in internal resolution.

Use the htmlHeight property to read or change the height of the web control.

Morfik internal resolution is 1000th of a millimeter.

Defined in: SystemControls

Property TWebControl.Height: Integer;

TWebControl.Hint

Contains the text string that can appear when the user moves the mouseover the web control.

Use the Hint property to provide a ToolTip for the web control.

NOTE:This property maps to the title attribute in CSS

Defined in: SystemControls

Property TWebControl.Hint: String;

TWebControl.Left

Specifies the left edge coordinate of a web control,relative to its parent web control in internal resolution.

Use Left to determine the position of the left edge of theweb control relative to its parent.

Morfik internal resolution is 1000th of a millimeter.

Defined in: SystemControls

Property TWebControl.Left: Integer;

TWebControl.ReadOnly

Specifies whether the user can change the text of the web control.

Use ReadOnly to restrict the web control to display only.

Setting ReadOnly to False allows the contents of the web controlto be edited.

NOTE:This property is not available for all web controls!

Defined in: SystemControls

Property TWebControl.ReadOnly: Boolean;

TWebControl.Top

Specifies the top edge coordinate of a web control,relative to its parent web control in internal resolution.

Use Top to determine the position of the top edge of theweb control relative to its parent.

Morfik internal resolution is 1000th of a millimeter.

Defined in: SystemControls

Property TWebControl.Top: Integer;

TWebControl.Transparent

Specifies whether the parent web control can be seen through the web control.

Set Transparent to True to prevent the web control from obscuring theparent control.

Defined in: SystemControls

Property TWebControl.Transparent: Boolean;

TWebControl.Visible

Specifies if the web control should be displayed on screen.

Use the Visible property to control the visibility of the web control.

To hide a web control, set Visible to False. To display a web control,set Visible to True.

Defined in: SystemControls

Property TWebControl.Visible: Boolean;

TWebControl.Width

Specifies the horizontal size of the web control in internal resolution.

Use the Width property to read or change the width of the web control.

Morfik internal resolution is 1000th of a millimeter.

Defined in: SystemControls

Property TWebControl.Width: Integer;

TWebControl.WordWrap

Specifies whether the web control text wraps when it is too long for thewidth of the web control.

Set WordWrap to True to allow the web control to display multiple linesof text. When WordWrap is True, text that is too wide for the web controlcontrol wraps at the right margin and continues in additional lines.

Set WordWrap to False to limit the web control to a single line.

When WordWrap is False, text that is too wide for the label appears truncated.

Defined in: SystemControls

Property TWebControl.WordWrap: Boolean;

TXApp.ApacheGroup

Set this property to set the "Group" option in the Apache configuration file.

* This property defaults to the group name of the current user (If this is 'root' it willdefault to 'nogroup' to keep Apache happy.).

* A good place to change this property is the TXApp.OnStart event handler.

Defined in: SystemServer

Property TXApp.ApacheGroup: String;

TXApp.ApacheUser

Set this property to set the "User" option in the Apache configuration file.

Note that on most Linux platforms this property should be set to a valid user namewith certain user rights. Else Apache won't be able to access certain system resourcescausing the xApp fail on startup.

* This property defaults to the current logged user (If this is 'root' it willdefault to 'nobody' to keep Apache happy.).

* A good place to change this property is the TXApp.OnStart event handler.

Defined in: SystemServer

Property TXApp.ApacheUser: String;


Related Topics