Please enable JavaScript to view this site.

thinBasic Help Manual

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

Description

 

Allows set/get the event mask of the richedit control.

 

Syntax

 

' Set

<richeditName>.EventMask = newEventMask

 

' Get

currentEventMask = <richeditName>.EventMask

 

 

Returns (Get only)

 

Number, current binary event mask.

 

Parameters (Set only)

 

Name

Type

Optional

Meaning

newEventMask

Number

No

The event mask specifies which notification codes a rich edit control sends to its parent window. The event mask can be none or a combination of these values.

 
%ENM_CHANGE - Sends %EN_CHANGE notifications.

%ENM_CLIPFORMAT - Sends %EN_CLIPFORMAT notifications.

%ENM_CORRECTTEXT - Sends %EN_CORRECTTEXT notifications.

%ENM_DRAGDROPDONE - Sends %EN_DRAGDROPDONE notifications.

%ENM_DROPFILES - Sends %EN_DROPFILES notifications.

%ENM_IMECHANGE - Microsoft Rich Edit 1.0 only: Sends %EN_IMECHANGE notifications when the IME conversion status has changed. Only for Asian-language versions of the operating system.

%ENM_KEYEVENTS - Sends %EN_MSGFILTER notifications for keyboard events.

%ENM_LINK - Rich Edit 2.0 and later: Sends %EN_LINK notifications when the mouse pointer is over text that has the %CFE_LINK and one of several mouse actions is performed.

%ENM_LOWFIRTF - Sends %EN_LOWFIRTF notifications.

%ENM_MOUSEEVENTS - Sends %EN_MSGFILTER notifications for mouse events.

%ENM_OBJECTPOSITIONS - Sends %EN_OBJECTPOSITIONS notifications.

%ENM_PARAGRAPHEXPANDED - Sends %EN_PARAGRAPHEXPANDED notifications.

%ENM_PROTECTED - Sends %EN_PROTECTED notifications.

%ENM_REQUESTRESIZE - Sends %EN_REQUESTRESIZE notifications.

%ENM_SCROLL - Sends %EN_HSCROLL and %EN_VSCROLL notifications.

%ENM_SCROLLEVENTS - Sends %EN_MSGFILTER notifications for mouse wheel events.

%ENM_SELCHANGE - Sends %EN_SELCHANGE notifications.

%ENM_UPDATE - Sends %EN_UPDATE notifications.

Rich Edit 2.0 and later: this flag is ignored and the %EN_UPDATE notifications are always sent. However, if Rich Edit 3.0 emulates Microsoft Rich Edit 1.0, you must use this flag to send %EN_UPDATE notifications.

 

 

Remarks

 

Restrictions

 

See also

 

Examples

 

control add richedit name "myRichedit", hDlg, %reMain"", 5, 5, 100, 25

 

' Limiting text length to 1024

myRichedit.EventMask = %ENM_UPDATE | %ENM_SELCHANGE

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software