<ControlName>.SendMessage

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Pseudo-object Methods and Properties >

<ControlName>.SendMessage

 

Description

 

Send a message to a specific control and return result.

 

Syntax

 

lResult = <controlName>.SendMessage(MessageCode, WParam, LPAram)

 

Returns

 

Number.

 

Parameters

 

Name

Type

Optional

Meaning

MessageCode

Number

No

Message code to be sent to the control

WParam

Number

No

WParam to be sent to the control

LParam

Number

No

LParam to be sent to the control

 

 

Remarks

 

Restrictions

 

See also

 

Examples

 

string sTextBuffer = File_Load(APP_ScriptFullName)

 

cEditor.SendMessage ( SCI_SETTEXT, 0, StrPtr(sTextBuffer) )