Method XbpSLE():setEditable() Foundation

Sets whether the edit buffer of the XbpSLE object is READONLY.

Syntax
:setEditable( [<lEditable>] ) --> lOldSetting
Parameters
<lEditable>
<lEditable> is a logical value that specifies whether the text contained in the edit buffer of the XbpSLE object can be modified. If the value is .T. (true) characters can be input, otherwise the edit buffer cannot be changed.
Return

This method returns whether the XbpSLE object was editable before the :setEditable() method was called.

Description

The :setEditable() method determines whether the XbpSLE object can be edited without having to call the :configure() method. Normally, whether the text buffer of the XbpSLE object can be edited is defined using the instance variable :editable which must be set before the method :create() is called. When there is a change to the readonly status of the XbpSLE object after the call to :create(), the :setEditable() method is used. This method should not be confused with the :disable() method that makes the XbpSLE object inaccessible. When the edit buffer is defined as readonly using :setEditable( .F. ), the text can still be scrolled and selected. Additional characters cannot be input, but selected characters can be copied to the clipboard.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.