BROWSE AND QUICK SEARCH
Moderator: Rathinagiri
BROWSE AND QUICK SEARCH
I'm looking for the way to realize quick search function in browse or grid.
It should be easy to do this, by adding to browse or grid OnKeyPressed event with code of pressed key passed as parameter.
If operator press navigation keys, browse interprets it the same, but, if it's pressed antoher key (A, B or 1,2,3... etc.) pressed key should be passed as parameter to OnKeyPressed event..
How do you think?
Is it possible to achieve?
Best regards, Marek
It should be easy to do this, by adding to browse or grid OnKeyPressed event with code of pressed key passed as parameter.
If operator press navigation keys, browse interprets it the same, but, if it's pressed antoher key (A, B or 1,2,3... etc.) pressed key should be passed as parameter to OnKeyPressed event..
How do you think?
Is it possible to achieve?
Best regards, Marek
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: BROWSE AND QUICK SEARCH
Viva INTERNATIONAL HMG 
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
BROWSE AND QUICK SEARCH
Very nice examples Mr. Esgici. I have seem SFilBox also very good.
I do not know if your will find any example of keyboards events inside of browse control. I think all functionality in Gird/Browse in HMG is completly different than we have used like us in console mode or in Clipper. In MiniGui there are two favorites of mine in:
C:\MiniGUI\SAMPLES\BASIC\FastFind
C:\MiniGUI\SAMPLES\Advanced\MiniAgenda
I do not know if your will find any example of keyboards events inside of browse control. I think all functionality in Gird/Browse in HMG is completly different than we have used like us in console mode or in Clipper. In MiniGui there are two favorites of mine in:
C:\MiniGUI\SAMPLES\BASIC\FastFind
C:\MiniGUI\SAMPLES\Advanced\MiniAgenda
Last edited by Pablo César on Wed Dec 28, 2011 7:16 pm, edited 1 time in total.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: BROWSE AND QUICK SEARCH
Hi Pablo
Didn't noticed original author of MiniAgenda ?
If so, please look at here or here
Saludos
--
Esgici
Didn't noticed original author of MiniAgenda ?
If so, please look at here or here
Saludos
--
Esgici
Viva INTERNATIONAL HMG 
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
BROWSE AND QUICK SEARCH
hahaha I really like very much this MiniAgenda. Congratullations worderfull job !
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Re: BROWSE AND QUICK SEARCH
Hi Esgici!esgici wrote:Hi Mol
Please look at here ( QuickSearch.zip )
I hope that it will help you
Regards
--
Esgici
Many thanks for this sample! I know it from the years and I'm using this way of incremental searching, but, a little modified.
But, In my intensions was to still get focus on grid or browse without moving to "Search Box"
-
claudiotedesco
- Posts: 132
- Joined: Thu Jul 31, 2008 12:05 pm
Re: BROWSE AND QUICK SEARCH
Hi Esgici
Compile el ejemplo MAgendaB918 con HMG 3.0.35 y me da el siguiente error:
Cual es el problema?
Gracias
Claudio
hbmk2: Processing configuration: C:\hmg\harbour\bin\hbmk.cfg
hbmk2: Processing: MAgenda.hbc
hbmk2: Compiling Harbour sources...
Harbour 2.0.0 (Rev. 13372)
Copyright (c) 1999-2010, http://www.harbour-project.org/
hbmk2: Compiling...
hbmk2: Linking... MAgenda.exe
.hbmk\win\mingw\magenda.o:magenda.c:(.data+0x598): undefined reference to `HB_FUN(int13_t &, int0_t &)'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc.exe .hbmk\win\mingw\magenda.o .hbmk\win\mingw\_hbmkaut.o _temp.o -mwindows -Wl,--start-group -lhmg -lhbmysql -lmysql -lcrypt -ledit -leditex -lgraph -lini -lreport -lhbwin -lhbziparc -lhbmzip -lmsvfw32 -lvfw32 -lsddodbc -lrddsql -lsddmy -lhbodbc -lodbc32 -lhbhpdf -lhbvpdf -lhbmemio -lhbsqlit3 -lsqlite3 -lhbfimage -lhbpgsql -lpq -lhbtip -lhbct -lhbmisc -lhbnetio -lxhb -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -oMAgenda.exe -LC:/hmg/harbour/lib -LC:/hmg//lib -LC:/hmg/SAMPLES/MAgendaB918/
Compile el ejemplo MAgendaB918 con HMG 3.0.35 y me da el siguiente error:
Cual es el problema?
Gracias
Claudio
hbmk2: Processing configuration: C:\hmg\harbour\bin\hbmk.cfg
hbmk2: Processing: MAgenda.hbc
hbmk2: Compiling Harbour sources...
Harbour 2.0.0 (Rev. 13372)
Copyright (c) 1999-2010, http://www.harbour-project.org/
hbmk2: Compiling...
hbmk2: Linking... MAgenda.exe
.hbmk\win\mingw\magenda.o:magenda.c:(.data+0x598): undefined reference to `HB_FUN(int13_t &, int0_t &)'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc.exe .hbmk\win\mingw\magenda.o .hbmk\win\mingw\_hbmkaut.o _temp.o -mwindows -Wl,--start-group -lhmg -lhbmysql -lmysql -lcrypt -ledit -leditex -lgraph -lini -lreport -lhbwin -lhbziparc -lhbmzip -lmsvfw32 -lvfw32 -lsddodbc -lrddsql -lsddmy -lhbodbc -lodbc32 -lhbhpdf -lhbvpdf -lhbmemio -lhbsqlit3 -lsqlite3 -lhbfimage -lhbpgsql -lpq -lhbtip -lhbct -lhbmisc -lhbnetio -lxhb -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -oMAgenda.exe -LC:/hmg/harbour/lib -LC:/hmg//lib -LC:/hmg/SAMPLES/MAgendaB918/
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: BROWSE AND QUICK SEARCH
Hola Claudio
Interesting
Here ( HMG 3.0.40 ) there isn't any problem
Please check size of .zip file, must be 7.152 bytes; may be corrupted while downloading.
If size is correct, probably you have upgrade to HMG 3.0.40 (2011-11-13)
Saludos
--
Esgici
Interesting
Here ( HMG 3.0.40 ) there isn't any problem
Please check size of .zip file, must be 7.152 bytes; may be corrupted while downloading.
If size is correct, probably you have upgrade to HMG 3.0.40 (2011-11-13)
Saludos
--
Esgici
Viva INTERNATIONAL HMG 
- danielmaximiliano
- Posts: 2763
- Joined: Fri Apr 09, 2010 4:53 pm
- DBs Used: DBF
- Location: Argentina
- Contact:
Re: BROWSE AND QUICK SEARCH
Hola Claudio:
el la carpeta HFCL dentro de HMG.3.040 estan los Include que necesitas para compilar MAgenda.hbp
yo copie la carpeta completa HFCL a la carpeta de Magenda y ningun problema
el la carpeta HFCL dentro de HMG.3.040 estan los Include que necesitas para compilar MAgenda.hbp
yo copie la carpeta completa HFCL a la carpeta de Magenda y ningun problema
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Telegram invitation https://t.me/HMGWorkspace
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: BROWSE AND QUICK SEARCH
No need copying entire folderdanielmaximiliano wrote:Google Translate wrote:l folder within HMG.3.040 HFCL are the need to compile Include MAgenda.hbp
I copy the entire folder to the folder HFCL Magendo
...
and no problem
Everything explained in C:/hmg/hfcl/Doc/index.htm.
And MiniAgenda.hbc file have the line :ReadMe file of MiniAgenda wrote:
Notes :
- Mini Agenda use HFCL library
incpaths=C:\hmg\hfcl\Include\
After changing C:\hmg to your hmg path, you will compile either via HMG-IDE or build.bat with no problem.
Build.bat will be like :
call c:\hmg\build.bat MAgenda
That's all
PS: There is another simple way:
If you no need PRINT your grid, change ( line 487, 488 ) MAgenda.prg
Code: Select all
CASE cFOper == 'P' // File\Print
PRINT GRID grdMAgenda OF frmMiniAgenda SHOWWINDOW
Code: Select all
CASE cFOper == 'P' // File\Print
* PRINT GRID grdMAgenda OF frmMiniAgenda SHOWWINDOW
--
Esgici
Viva INTERNATIONAL HMG 