Navigation:  Classes > bBrowser >

bBrowser:Edit()

Print this Topic    Previous pageReturn to chapter overviewNext page

Purpose

Activate the input of cell data.

Class

bBrowser

Type

Method

Syntax

<oBrowser>:Edit() Æ lEdit

Return Value

lEditA logical value that indicates whether the input for the data cell was activated.
TRUEThe input was activated.
FALSEThe input could not be activated.
Data Type:Logic

Description

Before the input in the current data cell is activated, the bBrowser examines whether an input is permitted in the data column.

 

Activation of the Edit occurs in 3 steps: bBrowser:CellEdit() is called in each case. The method CellEdit() checks again whether the owner of the browser has a method with the same name and calls it if it exist. With that method the owner can thus exert influence on activating the input. The 3 steps are defined as follows:

1.Create the edit control
Before the browser creates a default edit control, it calls the method CellEdit() with the EditMode BEDIT_CREATE in the owner, if this is defined. If the method returns the value FALSE, the input is not activated. Within the method CellEdit() the owner can create its own control for the input and return it in the CellEditEvent in the access bCellEditEvent:EditControl. In this case the default edit control is not created.

2.Initialize the edit control
After the edit control was created or not, the browser calls the method CellEdit() with the EditMode BEDIT_INIT in the owner, if this is defined. With this method CellEdit() the owner can initialize the edit control. If the method returns the value FALSE, the input is not activated.

3.Show the edit control
Before the input is finally activated, the browser calls the method CellEdit() with the EditMode BEDIT_INIT in the owner, if this is defined. With this method the owner can show the edit control. If after return of the method the control is not yet visible, the browser calls automatically the method Show() of the control.

See Also

bBrowser:AutoEdit

bBrowser:CellEdit()

bBrowser:Editable

bBrowser:EditCancel()

bBrowser:EditCell

bBrowser:EditClose()

bBrowser:EditControl

bBrowser:EditCreate()

bDataColumn:Editable

 


Page url: http://www.YOURSERVER.com/index.html?bbrowser_edit.htm