home *** CD-ROM | disk | FTP | other *** search
- PROCEDURE LookKey
- *----------------------------------------------------------------------------
- * NAME
- * LookKey() - Key and mouse event handler for lookup table.
- *
- *----------------------------------------------------------------------------
- * PRIVATE Form, This
-
- IF Event.EventType = 16
- IF Event.KeyValue = 13
- Event.EventType = 0 && Eat the event, so the object doesn't
- Lookup.Action = .T.
- lVoid = Lookup.Close()
- ENDIF
- ELSE
- IF Event.EventType = 1
- nRow = Event.MouseRow
- nCol = Event.MouseColumn
-
- *-----------------------------------------------------------
- *-- Check for a double click on the scroll bar and ignore it
- *-----------------------------------------------------------
- DO CASE
- CASE nRow <= 2
- RETURN
- CASE nCol = 0
- RETURN
- CASE nCol + 1 = Lookup.Width
- RETURN
- CASE nRow + 1 = Lookup.Height
- RETURN
- ENDCASE
- Event.EventType = 0 && Eat the event, so the object doesn't
- Lookup.Action = .T.
- lVoid = Lookup.Close()
- ENDIF
- ENDIF
-
- RETURN
- *-- EOP: LookKey( )
-
-
-
-