byron.hopp wrote:All,
Has anybody written a incremental search for a get which will display the selections beneath the get. Similar to how Google Chrome displays a selection list below the address bar when searching.
It would be nice if the list is about the same size as the get, where as Google goes across the entire width of the browser.
thanks,
Byron ...
#Include "FiveWin.Ch"
#include "xbrowse.ch"
static a := {"","AAAB","AAACA","AAADA","AAAE","AAAFA","AAAFB","AAAFC","AAAFD"}, oBrw
Function Main()
Local oDlg
Local oGet, oGet1
local cVar := space( 20 )
DEFINE DIALOG oDlg from 0,0 to 400,400 pixel
@ 15,15 get oGet var cVar picture "@!" size 120,12 of oDlg pixel
@ 29,15 get oGet1 var cVar picture "@!" size 120,12 of oDlg pixel
oGet:aSource := a
oGet:bSearch := {|i,e| AT( i, e ) > 0 }
oGet:cSource := 'ARRAY'
oGet:lenDisplay := 8
ACTIVATE DIALOG oDlg
return nil
use combobox always is a possibility, but when we have huge data it is not an option
oDBC1:bKeyDown:={|| if(len(trim(cStateID))>=1,(oDBC1:open(),oDBC1:refresh()),)}
James Bott wrote:With large data you can use a dbcombo control. It looks like a combobox but uses a database instead of an array.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 71 guests