Edit Extended / Edit WorkArea - ABM / ABM2

Topic Specific Tutorials and Tips.

Moderator: Rathinagiri

User avatar
serge_girard
Posts: 3161
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Edit Extended / Edit WorkArea - ABM / ABM2

Post by serge_girard »

Hi Ruben,

Nice job! The FIND option however needs a little adaption: I tried finding 'glen' (Glen) and it gave not found.
Pablo: thx for BIGELEM!

Serge
There's nothing you can do that can't be done...
rubenalf
Posts: 26
Joined: Mon Jan 11, 2016 5:55 pm

Re: Edit Extended / Edit WorkArea - ABM / ABM2

Post by rubenalf »

------ English ------
Yes Pablo, I did not mention you should use superlib.a for BIGELEM()
(well, I did on the code, beside the calling at the function)
There is another similar (I did no try it) ft_AEMaxLen() --> libhbnf.a

Actually I did not check FIND option. I will do

Thanks Pablo, Serge and all that have evaluated mi modest work
Ruben

------ Español ------

Si Pablo, olvidé mencionar que se debe usar superlib.a para BIGELEM()
(realmente lo hice en el código, al lado de la llamada a la función)
Hay otra función similar que no probé ft_AEMaxLen() --> libhbnf.a

Realmente no usé la opcion FIND.

Gracias Pablo, Sergio y todos los que se interesaron por este modesto aporte
Ruben
rubenalf
Posts: 26
Joined: Mon Jan 11, 2016 5:55 pm

Re: Edit Extended / Edit WorkArea - ABM / ABM2

Post by rubenalf »

Serge:
My changes do not interact with FIND option. To look for last name try changing index order (upper left on the browse)
Should not be conflicts because the modifications are (surprising) very few. You can look at the code for

Code: Select all

 *<< begin modif (2017-02) ComboBox 
You will find no more than 40 code lines in basically 3 places.

It is compatible with the original Edit Extend, only should be noted that if you have a special save routine, witch is an optional
parameter, you should modify it accordingly. That is the reason why it will not work the "Advanced test" on the demo w/o modifications.


------ Español ------
Los cambios no deberían afectar la opción de búsqueda FIND. Para buscar por apellido prueba cambiando el índice (arriba a la izq. en el browse)
No debería haber otros conflictos porque las modificaciones son pocas en contra de lo esperado. Si buscan en el código la frase

Code: Select all

 *<< begin modif (2017-02) ComboBox 
verán que no hay más de 40 lineas de código basicamente en 3 partes.

Debe ser totalmente compatible con el original Edit Extend, solo se debe aclarar que si tienes tu propia rutina de grabacion
debes modificarla para que pueda manejar los Comboboxes. Por eso no funciona "Advanced test" en el demo sin modificarlo.
User avatar
serge_girard
Posts: 3161
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Edit Extended / Edit WorkArea - ABM / ABM2

Post by serge_girard »

Thx !

Sege
There's nothing you can do that can't be done...
rubenalf
Posts: 26
Joined: Mon Jan 11, 2016 5:55 pm

Re: Edit Extended / Edit WorkArea - ABM / ABM2

Post by rubenalf »

Para evitar confusión agregué el COMBOBOX sobre un h_edit_ex.prg original.
To avoid confusion I made the changes for COMBOBOX on original h_edit_ex.prg

Ahora verifica que la función devuelva una matriz, caso contrario la ignora.
Now, it cheks that list function return an array, otherway just ignore it.

He modificado en el demo la rutina AdvancedSave() para que maneje bien los COMBOBOX.
I have modified the AdvancedSave() routine in the demo to handle the COMBOBOX well.
Attachments
Editex-demo_CB - copia.zip
(49.21 KiB) Downloaded 260 times
rubenalf
Posts: 26
Joined: Mon Jan 11, 2016 5:55 pm

Re: Edit Extended / Edit WorkArea - ABM / ABM2

Post by rubenalf »

El mismo Edit Extended con LISTBOX y MULTICOLUMNA rediseñado.
Ahora recive un parámetro más (al final) para indicar 2 columnas horizontal ("H") o vertical ("V")
Si se omite, por compatibilidad usa 1 sola columna. Tambien se puede poner 1 (o cualquier cosa)

The same Edit Extended with LISTBOX and MULTICOLUMN reworked.
Now it accept one more parameter (at the end) to choose 2 column either horizontal ("H") or vertical ("V")
You may put nothing for compatibility, or the number 1, to mean 1 column.

Check every option on the menu. Prueben todas las opciones en el menú para ver como trabaja.
Attachments
Editex-demo_mc.zip
(52.49 KiB) Downloaded 255 times
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Edit Extended / Edit WorkArea - ABM / ABM2

Post by Pablo César »

Gracias Ruben por compartir.

Logré compilar tu ejemplo despues de remplazar el edit-SaveArr.prg por el h_edit_ex_mc.prg pero creo que no es este el módulo que querias demonstrar. Pues no veo ningun ListBox como mencionas.

Podrias disponibilizarlo ?
 
Googled
Thanks Ruben for sharing.

I managed to compile your example after replacing the edit-SaveArr.prg with the h_edit_ex_mc.prgbut I do not think this is the module you wanted to demonstrate. Well I do not see any ListBox as you mention.

Could you make it available?
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
rubenalf
Posts: 26
Joined: Mon Jan 11, 2016 5:55 pm

Re: Edit Extended / Edit WorkArea - ABM / ABM2

Post by rubenalf »

Si disculpa, el modulo es "h_edit_ex_mc.prg" .No me di cuenta porque yo uso qpm
Hay que ponerlo en DEMO.HBP en lugar de "edit-savearr.prg"
En todo caso lo descargué y probé y funciona bien, usando el DEMO como ejemplo

Todos tienen comboxs, solo los "extended" muestran las 2 formas de desplegar las columnas

Si lo llamaste desde otro programa debes incluir las funciones correspondientes a cada listbox (ver el ejemplo en demo.prg) o revisa este post un poco más arriba.

Gracias por probarlo. Si sigues con problemas dame mas detalles de como lo estas usando.
rubenalf
Posts: 26
Joined: Mon Jan 11, 2016 5:55 pm

Re: Edit Extended / Edit WorkArea - ABM / ABM2

Post by rubenalf »

Para compilar con el batch se debe usar este "DEMO.HBP" (adjunto) y poner la carpeta bajo "\HMG\SAMPLES\"

To compile using "BUILD.BAT" should be used the attached "DEMO.HBP" and the whole folder under "\HMG\SAMPLES\"

Modificado / Modified
Acá va completo. Now is the folder with everything in it (included. demo.exe)
Attachments
EditexForo.zip
(1.9 MiB) Downloaded 252 times
rubenalf
Posts: 26
Joined: Mon Jan 11, 2016 5:55 pm

Re: Edit Extended / Edit WorkArea - ABM / ABM2

Post by rubenalf »

found the h_edit.prg but it's all in spanish.
does anyone have an english version ?? ( oldclipperguy )
This is a quite old and complex .prg; moreover is in foreign (at least for me) language;
so intervening to source for this purpose, seems is quite difficult ( Esgici )
I have been working on translating the source comments to english.
It is about 50% done.

Please let mi know if that help and if my english translation is understandable.
I will apreciate corrections and please point out if any translated line does not make sense
Attachments
h_edit_ex_En.prg.zip
(18.96 KiB) Downloaded 236 times
Post Reply