Home > Archive > dBASE Code Sharing > October 2005 > Paintbox Key Handler









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Paintbox Key Handler
Todd Kreuter

2005-10-27, 8:02 am

Following this message I am attaching a custom control named KeyPX.cc
and a demo form.

KeyPX (Paintbox key handler) is a paintbox control that emulates input
into any entryfield and provides a vast number of "seeker" capabilities.
Originally written to handle key strokes in combobox type controls,
keyPX can be used as a seeker only control. Because the paintbox
receives key input, you have the ability to recognize more keys than
using an entryField key event, including shift, ctrl, arrows, etc.
(everything except Alt I belive).

The control is a field and index based seeker rather than a rowset/index
based seeker. This allows the control to perform an auto-Complete
function and perform non-indexed searches when necessesary. This
basically means you have to tell the control what field is being
searched, and if doing an indexed search, what index is being used.

The control has three styles:
0 - Seeker
1 - Combobox - Any Input
2 - Combobox - Restricted Input

The demo form demonstrates all three styles using three entryfields
sharing the same keyPX control.

The seeker on the form is actually datalinked to the field it is
searching (a no no for seeker.cc) but the dataLink can be removed if you
wish.

The demonstration of styles 1 and 2 are pretty basic and does not
include the comboboxes (a separate custom control), but you can see how
that would work with just the entryfield and the grid on the form.


--
Todd Kreuter [dBVIPS]
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com