SftMask/OCX 6.5

SftMaskCaption.Text Property

Softel vdm, Inc.

Defines the caption text.

Syntax       

Get

VB.NET

String = object.Text  As String

VB

String = object.Text  As String

C#.NET

string String = object.Text;

VC++

_bstr_t String = object->Text;
_bstr_t String = object->GetText();

C

HRESULT object->get_Text(BSTR* String);

Delphi

String := object.Text   : WideString;

Put

VB.NET

object.Text = String  As String

VB

object.Text = String  As String

C#.NET

string object.Text = String;

VC++

_bstr_t object->Text = String;
void object->PutText(_bstr_t String);

C

HRESULT object->put_Text(BSTR String);

Delphi

object.Text := String   : WideString;

object

A SftMaskCaption object.

String

Defines the caption text.

Comments

The Text property defines the caption text.

The caption can include an accelerator key. By using the & character in the Text property, the following character becomes an accelerator key. If the user types Alt plus the defined accelerator key, the control receives the input focus. For example, if the Text property is set to "Today’s &Date", the displayed caption will read "Today’s Date", i.e., the D is underlined. If the user types Alt+d, the edit control receives the input focus. To display an & character use "&&".

The caption area position and size are defined using a combination of the Caption.SizePercent or Caption.Width, Caption.Position and AutoSize properties. For a detailed description of the various combinations, please see the chapter Built-In Caption.


Feedback / comments / error reports for this topic
© 2000, 2008 - Softel vdm, Inc. - www.softelvdm.com