4D v13

WR TEXT ACCESS

Home

 
4D Write v13
WR TEXT ACCESS

WR TEXT ACCESS 


 

WR TEXT ACCESS ( area ; mode ) 
Parameter Type   Description
area  Longint in 4D Write area
mode  Integer in 0=Allow access 1=Restrict access

The WR TEXT ACCESS command enables you to control access to the text in Area. When an area is displayed in read-only mode, the menus, rulers, and Zoom box are not present. The text can be seen and scrolled but not modified.

In the mode parameter, you can pass one of the following constants, found in the "WR Parameters" theme:

Constant Type Value Comment
wr allowed access Longint 0 Free access to the area
wr restricted access Longint 1 The user can access area information in read-only mode

When access to a formerly restricted area is changedby passing wr allowed access in mode, you must call WR SET DOC PROPERTY (Area;wr view menubar;wr displayed) and WR SET DOC PROPERTY (Area;wr view rulers;wr displayed) to display the ruler and menu bar.

This command controls the editing of an area using keyboard data entry and copy/paste, but not using drag and drop to or from the area. This operation may be useful within certain interfaces; however, if you want to prevent any modification in the area, use the following statements:

Example  

The following example is the form method of the form that contains area. It sets area to read-only when the form is loaded.

 If(Form event=On Load)
    WR TEXT ACCESS(area;wr restricted access)
 End if

 
PROPERTIES 

Product: 4D
Theme: WR Area Options
Number: 89237

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D Write 6

 
SEE ALSO 

WR SET DOC PROPERTY