[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Function: MouseEdit()
The MouseEdit() Function is a powerful function that
emulates quite some of dbEdit()'s features, adding to
those full Mouse Support.
Resuming MouseEdit()'s features versus dbEdit() comes
down to this:
. The Mouse if fully supported for Cursor movements
and emulates the Enter and Esc keys with the Left
and Right button.
. The handling of the Trap function has been replaced
by a code block, which are faster and eleganter to
execute. I have the habit of calling this code-block
the 'MouseTrap' function.
. The drawback is that only 1 column is supported, but
the idea is that this function would generally be
used as for scrolling in tables, and not complete
editing anyway, as that is not very efficient with a
mouse. Implementing more columns should be possible,
and may be implemented in a future release.
Syntax: MouseEdit(nTop,nLeft,nBottom,nRight,;
[cHead],bFld[,bTrap])
Arguments: The four first arguments define the table's position
on the screen. cHead is a string defining what should be
the header, use NIL for no header. cFieldCode is a code
block (without parameters), which defines what should be
displayed in the column.
Returns: This function does return a value, 0 when the user
pressed Esc (or pressed the right button) and current
Recno() when selected with Enter (or Left button). But of
course, one does not really need this value.
Usage: See the demo programs that have been supplied with
the Expand library for some detailed examples on how to
use this function.
See Also:
MouseTrap
MouseMenu()
MouseChoice()
MouseBrowse()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson