Drop Down with Search suggestion

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Locked
User avatar
HackinHoodLogicsTm
Posts: 131
Joined: Wed Aug 28, 2013 7:03 am
Location: Ghana
Contact:

Drop Down with Search suggestion

Post by HackinHoodLogicsTm »

Please does anyone has any idea how to setup your combo box to display suggestion as you begin typing alphabets?

Thanks in advance
I am proud to be a Neobooker!!!
www.neosoftware.com
Special Thanks To
Mr. David Riley
User avatar
Gaev
Posts: 3782
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada
Contact:

Re: Drop Down with Search suggestion

Post by Gaev »

HackinHoodLogicsTm:
how to setup your combo box to display suggestion as you begin typing alphabets?
You might consider a "simulated ComboBox" i.e. a TextEntry Box above a ListBox ... as user types in the TextEntry Box, its Text Change event code would load a list of matching entries in the ListBox.

The full list of entries can be held in an Arrayed Varible or a Database Table.

And if the user picks one of the entries in the ListBox, its Selection Changed event section code would copy the value to the TextEntry Box.

Many years ago, I did this for a client who had over a thousand entries (in a Database Table) ... the response to each entered key was quite fast.
User avatar
HackinHoodLogicsTm
Posts: 131
Joined: Wed Aug 28, 2013 7:03 am
Location: Ghana
Contact:

Re: Drop Down with Search suggestion

Post by HackinHoodLogicsTm »

Thanks Gaev. That's is a perfect idea.
I'll give it a try in the office.
I am proud to be a Neobooker!!!
www.neosoftware.com
Special Thanks To
Mr. David Riley
User avatar
virger
Posts: 540
Joined: Mon Sep 18, 2006 12:21 pm
Location: Costa Rica, America Central

Re: Drop Down with Search suggestion

Post by virger »

Tomando la idea anterior, intenta esto.
Taking the above idea, try this.

Code: Select all

NBW Publication Source File
(C)2016 NeoSoft Corp.
Title=LISBOX SEARCHING
Author=GdoSan/Apr-2017
Language=US
NeoBookVer=5,80
ScreenColors=16777216
ScreenWidth=640
ScreenHeight=480
BkndColor=0
ScreenAutoSize=Yes
LinkColor=16711680
WindowStyle=0
WindowOrder=0
WindowPos=0
WindowProps=31
BiDiMode=0
UseUpdateTimer=Yes
ReturnTime=60
ShapeTransColor=536870912
SplashProps=3
CompileType=0
MediaType=0
FilesIncluded=1
FontsIncluded=2
CopyExternalFiles=No
SetupMedia=3
SetupInstDir=C:\MyProgram
SetupTitle=Setup
SetupColors=16711680|0|65535
VersionMajor=1
VersionMinor=0
VersionRelease=0
VersionBuild=0
ReqExLevel=1
CustomFontName=Arial
CustomFontSize=9
CustomFontStyle=0
CustomCharset=1
CacheSize=30
ExtractOp=132
L_OK=OK
L_CANCEL=Cancel
L_YES=Yes
L_NO=No
L_CLOSE=Close
L_ERRORTITLE=Error
L_FINDTITLE=Find
L_FINDPROMPT=Find &What
L_FINDFIRST=&Find First
L_FINDNEXT=Find &Next
L_FINDERROR=Search text not found.
L_PWORDTITLE=Password required
L_PWORDMSG=Before continuing, you must first|enter the correct password.
L_PWORDPROMPT=&Password:
L_PWORDERROR=That's not the right password!
L_MEDIAERROR=In order to play this type of file you must install|the appropriate multimedia hardware and/or|software.
L_INTERNETERROR=Unable to locate Internet Browser software.
L_ABORTFUNCTION=Do you want to cancel this function?
L_EXTRACTERROR=This file could not be extracted and cannot be played.
L_INSTDIRPROMPT=Please enter the drive and directory where you would like this program to be installed. To accept the default drive and directory, simply press Enter.
L_INSTFOLDERPROMPT=Do you wish to create a program folder?
L_INSTRUNPROMPT=Do you want to run
L_INSTDISKPROMPT=Please insert disk #
L_INSTDISKERROR=That's not the correct disk, try again.
L_INSTGENERROR=The installation has terminated.
L_INSTEXITPROMPT=Do you really want to cancel the installation?
L_INSTWINTITLE=Setup
L_INSTPROGTITLE=Extracting Files...
L_SENDEMAIL=Sending Mail...
L_MAILSERVER=Please enter the name of your outgoing email server:
L_COPY=Copy to Clipboard
L_SELECTALL=Select All
L_DONWLOADFILE=Downloading: %s
L_PLEASEWAIT=Please wait...
TrayMenuBegin
MenuName=TrayOpen
MenuText=Open
MenuState=3
MenuKey=0
MenuAction=SetVar "[WindowState]" "Normal"
MenuName=TrayExit
MenuText=Exit
MenuState=3
MenuKey=0
MenuAction=Exit "" ""
MenuEnd
MasterPage
NewPage=New Page
PageStyle=0
PageColor=16777215
PageGradient1=16711680
PageGradient2=255
PageGradientDir=1
WallpaperStyle=0
ObjectType=3
Name=BtInit
X=8
Y=16
W=75
H=35
Anchor=0
Text=Init
Align=2
ImageStyle=0
ObjAction=..//FileRead "Codes.txt" "All" "[LsCodes]"¶ListBoxSize "LsCodes" "[Sz]"
LineColor=0
LineWidth=1
LineStyle=0
FillColor=12632256
FillPattern=0
Font=Arial
FontSize=12
FontStyle=3
FontCharset=1
TextColor=0
TabOrder=2
ObjectType=10
Name=LsCodes
X=32
Y=93
W=568
H=145
Anchor=0
Text=0x0009;en;English;English;1252;437;USA;ENU¶0x0C09;en-AU;English (Australia);English;1252;850;AUS;ENA¶0x2809;en-BZ;English (Belize);English;1252;850;BLZ;ENL¶0x1009;en-CA;English (Canada);English;1252;850;CAN;ENC¶0x2409;en-029;English (Caribbean);English;1252;850;CAR;ENB¶0x4009;en-IN;English (India);English;1252;437;IND;ENN¶0x1809;en-IE;English (Ireland);English;1252;850;IRL;ENI¶0x2009;en-JM;English (Jamaica);English;1252;850;JAM;ENJ¶0x4409;en-MY;English (Malaysia);English;1252;437;MYS;ENM¶0x1409;en-NZ;English (New Zealand);English;1252;850;NZL;ENZ¶0x3409;en-PH;English (Republic of the Philippines);English;1252;437;PHL;ENP¶0x4809;en-SG;English (Singapore);English;1252;437;SGP;ENE¶0x1C09;en-ZA;English (South Africa);English;1252;437;ZAF;ENS¶0x2C09;en-TT;English (Trinidad and Tobago);English;1252;850;TTO;ENT¶0x0809;en-GB;English (United Kingdom);English;1252;850;GBR;ENG¶0x0409;en-US;English (United States);English;1252;437;USA;ENU¶0x3009;en-ZW;English (Zimbabwe);English;1252;437;ZWE;ENW¶0x000C;fr;French;French;1252;850;FRA;FRA¶0x080C;fr-BE;French (Belgium);French;1252;850;BEL;FRB¶0x0C0C;fr-CA;French (Canada);French;1252;850;CAN;FRC¶0x040C;fr-FR;French (France);French;1252;850;FRA;FRA¶0x0007;de;German;German;1252;850;DEU;DEU¶0x0C07;de-AT;German (Austria);German;1252;850;AUT;DEA¶0x0407;de-DE;German (Germany);German;1252;850;DEU;DEU¶0x1407;de-LI;German (Liechtenstein);German;1252;850;LIE;DEC¶0x1007;de-LU;German (Luxembourg);German;1252;850;LUX;DEL¶0x0807;de-CH;German (Switzerland);German;1252;850;CHE;DES¶0x000A;es;Spanish;Spanish;1252;850;ESP;ESP¶0x2C0A;es-AR;Spanish (Argentina);Spanish;1252;850;ARG;ESS¶0x400A;es-BO;Spanish (Bolivia);Spanish;1252;850;BOL;ESB¶0x340A;es-CL;Spanish (Chile);Spanish;1252;850;CHL;ESL¶0x240A;es-CO;Spanish (Colombia);Spanish;1252;850;COL;ESO¶0x140A;es-CR;Spanish (Costa Rica);Spanish;1252;850;CRI;ESC¶0x1C0A;es-DO;Spanish (Dominican Republic);Spanish;1252;850;DOM;ESD¶0x300A;es-EC;Spanish (Ecuador);Spanish;1252;850;ECU;ESF¶0x440A;es-SV;Spanish (El Salvador);Spanish;1252;850;SLV;ESE¶0x100A;es-GT;Spanish (Guatemala);Spanish;1252;850;GTM;ESG¶0x480A;es-HN;Spanish (Honduras);Spanish;1252;850;HND;ESH¶0x080A;es-MX;Spanish (Mexico);Spanish;1252;850;MEX;ESM¶0x4C0A;es-NI;Spanish (Nicaragua);Spanish;1252;850;NIC;ESI¶0x180A;es-PA;Spanish (Panama);Spanish;1252;850;PAN;ESA¶0x3C0A;es-PY;Spanish (Paraguay);Spanish;1252;850;PRY;ESZ¶0x280A;es-PE;Spanish (Peru);Spanish;1252;850;PER;ESR¶0x500A;es-PR;Spanish (Puerto Rico);Spanish;1252;850;PRI;ESU¶0x0C0A;es-ES;Spanish (Spain);Spanish;1252;850;ESP;ESN¶0x540A;es-US;Spanish (United States);Spanish;1252;850;USA;EST¶0x380A;es-UY;Spanish (Uruguay);Spanish;1252;850;URY;ESY¶0x200A;es-VE;Spanish (Venezuela);Spanish;1252;850;VEN;ESV¶
VarName=[vCode]
VarType=0
LineColor=0
LineWidth=1
LineStyle=0
FillColor=16777215
FillPattern=0
Font=Arial
FontSize=12
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=4
ObjectType=9
Name=EnBs
X=129
Y=41
W=260
H=35
Anchor=0
VarName=[Bs]
Align=1
EditLen=0
ObjAction=if "[Bs]" "<>" ""¶    ListBoxDeleteItem "Lista" "All"¶    loop "1" "[sz]" "[c]"¶        ListBoxGetItem "LsCodes" "[c]" "[vCode]"¶        SearchStr "[bs]" "[vCode]" "[ps]" ""¶        if "[Ps]" ">" "0"¶            ListBoxAddItem "Lista" "0" "[vCode]"¶        endif¶    endloop¶endif
LineColor=0
LineWidth=1
LineStyle=0
FillColor=14219488
FillPattern=0
Font=Arial
FontSize=14
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=5
ObjectType=10
Name=Lista
X=40
Y=289
W=568
H=156
Anchor=0
VarName=[vFind]
VarType=0
LineColor=0
LineWidth=1
LineStyle=0
FillColor=14215416
FillPattern=0
Font=Arial
FontSize=12
FontStyle=0
FontCharset=1
TextColor=0
TabOrder=3
ObjectType=8
Name=Inf1
X=129
Y=18
W=152
H=26
Anchor=0
Font=Arial
FontSize=16
FontStyle=3
FontCharset=1
TextColor=0
Text={\rtf1\ansi\deff0\deftab254{\fonttbl{\f0\fnil\fcharset1 Arial;}}{\pard{\ql\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs32\cf0\b\i Search}}¶}
HMargin=0
VMargin=0
LineColor=0
LineWidth=0
LineStyle=0
FillColor=14219488
FillPattern=1
TabOrder=8
ObjectType=8
Name=Inf2
X=448
Y=67
W=152
H=26
Anchor=0
Font=Arial
FontSize=16
FontStyle=3
FontCharset=1
TextColor=0
Text={\rtf1\ansi\deff0\deftab254{\fonttbl{\f0\fnil\fcharset1 Arial;}}{\pard{\qr\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs32\cf0\b\i Big List}}¶}
HMargin=0
VMargin=0
LineColor=0
LineWidth=0
LineStyle=0
FillColor=14219488
FillPattern=1
TabOrder=7
ObjectType=8
Name=Inf3
X=221
Y=261
W=263
H=26
Anchor=0
Font=Arial
FontSize=16
FontStyle=3
FontCharset=1
TextColor=0
Text={\rtf1\ansi\deff0\deftab254{\fonttbl{\f0\fnil\fcharset1 Arial;}}{\pard{\qc\li0\fi0\ri0\sb0\sl\sa0 \plain\f0\fs32\cf0\b\i List Suggestions }}¶}
HMargin=0
VMargin=0
LineColor=0
LineWidth=0
LineStyle=0
FillColor=14219488
FillPattern=1
TabOrder=6
TKX for ReadMe
COSTA RICA
PURA VIDA
Locked