I had an epiphany (another boring story :)

HMG announcements; Latest HMG-related news, releases, fixes and updates.

Moderator: Rathinagiri

User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

I had an epiphany (another boring story :)

Post by Roberto Lopez »

Well....

I usually walk about one hour a day (by the sea) to try to keep my body (and my brain) in good shape...

I left my cell-phone at home, take my mp3 player and go to walk... then I can reach some 'peace of mind' state... :)

In such state, I can think about unsolved problems (real life and HMG :) )

A very old wish for HMG users (and to me too) is the possibility to freeze or lock grid columns to avoid scrolling when navigating.

Grid is based on Windows ListView control. ListView does not provide that functionality, so, Grid does not have it.

My conclusion about that, was that the task were very difficult and out of my 'abilities', so, the case was 'closed' until (at least) MS add column locking capabilities to ListView.

But yesterday, while doing my daily walking, an idea come to mi mind, appearing like a toast jumping from the toaster :)

Locking columns could be EXTREMELY EASY to do.

Later, at home, I've went to my computer and got the whole thing working in about 10 MINUTES!.

Here is the 3.0.30a patch.

It includes: 'libhmg.a', 'i_grid.ch', i_altsyntax.ch 'ide.exe' and new 'grid.38' sample.

I'm interested on that you test it and if you can figure out how it works and because was so easy to do :)

If no serious problems arise, this feature will be 'officially' added to 3.0.31 release.

Enjoy!
Attachments
hmg3030a.rar
(1.51 MiB) Downloaded 487 times
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: I had an epiphany (another boring story :)

Post by esgici »

Thanks a lot Roberto,

Your are working for us even in your relax time :)

Best regards

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
Algernon
Posts: 57
Joined: Sat Mar 20, 2010 10:36 am
DBs Used: DBF
Location: Arucas, Gran Canaria, Canary Islands

Re: I had an epiphany (another boring story :)

Post by Algernon »

Thanks Roberto, As esgici say you use your relax time to solve ours petitions.

In the patch 3.0.30a,rar I didn't find the file i_grid.ch and when I tried to compile the sample grid.38 it has a mistake, I think that I need i_grid.ch new version.

Regards and thanks again for your work.

Salu2

Javier Suárez

La obra humana más bella es la de ser útil al prójimo. (Sófocles)
The most beautiful work of man is to be useful to others. (Sófocles)
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: I had an epiphany (another boring story :)

Post by Roberto Lopez »

Algernon wrote:Thanks Roberto, As esgici say you use your relax time to solve ours petitions.

In the patch 3.0.30a,rar I didn't find the file i_grid.ch and when I tried to compile the sample grid.38 it has a mistake, I think that I need i_grid.ch new version.

Regards and thanks again for your work.

Salu2
Ok.

I've forgot the i_grid.ch and i_altsyntax.ch files.

I've added, re-packaged and uploaded again to the original message with the same name.

So, for the 4 persons that already downloaded, please, download again.

Sorry for the inconvenience.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Algernon
Posts: 57
Joined: Sat Mar 20, 2010 10:36 am
DBs Used: DBF
Location: Arucas, Gran Canaria, Canary Islands

Re: I had an epiphany (another boring story :)

Post by Algernon »

That's fine, it's like a scroll, good work.

Thanks Roberto for all you do for us.

Javier Suárez

La obra humana más bella es la de ser útil al prójimo. (Sófocles)
The most beautiful work of man is to be useful to others. (Sófocles)
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: I had an epiphany (another boring story :)

Post by esgici »

Yes, everything is OK for me too :D

Tested, LOCKCOLUMNS with values other than 1 (even less than 1 and greater than column counts !), and applied some previous GRID samples; no problem seen :D

By the way, this was LOCK or FREEZE ? It seem to me in old days ( happy dBase and Clipper days ;) ) these was two separate process.

Now, we need waiting test results by Marek ;)

Best regards and hearty thanks Roberto :D

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: I had an epiphany (another boring story :)

Post by esgici »

esgici wrote: ...
By the way, this was LOCK or FREEZE ? It seem to me in old days ( happy dBase and Clipper days ;) ) these was two separate process.
...
Sorry, I remember wrong :(

In Clipper I can't found LOCK, and description of FREEZE method of TBrowse class is :
Freeze (Assignable)

Contains a numeric value that defines the number of data columns
frozen on the left side of the display. Frozen columns are always
visible, even when other columns are panned off the display.

oTB:Freeze := 1
And, in dBASE side :
Lock and Freeze in Browse of dBase
Lock and Freeze in Browse of dBase
Lock&FreezeInDbase.jpg (75.65 KiB) Viewed 6488 times
Of course, this doesn't means "everything must be in this way", only a little remembering.

Saludos, regards

--
Esgici
Viva INTERNATIONAL HMG :D
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: I had an epiphany (another boring story :)

Post by Rathinagiri »

Great enhancement Roberto. Thanks a lot.

I can't figure out. :(
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
fchirico
Posts: 324
Joined: Sat Aug 23, 2008 11:27 pm
Location: Argentina

Re: I had an epiphany (another boring story :)

Post by fchirico »

Roberto Lopez wrote:Well....

I'm interested on that you test it and if you can figure out how it works and because was so easy to do :)

Enjoy!
SPANISH:
Roberto:

Excelente!!!!

Lo estuve probando sin problemas.

Solo un comentario a nivel estético o de practicidad.

En el ejemplo si voy hasta la columna 6 y hago click en la columna 1 ( la que está LOCKEADA ) para editarla, al confirmar la edición con el ENTER y luego presiono la FLECHA IZQUIERDA para volver a la columna 6, debo apretar tantas veces la FLECHA IZQUIERDA como celdas tengo "ocultas", lo ideal sería que valla a la columna 6 de inmediato.

Esto es solo una cuestión de practicidad, me imagino en esos GRIDs enormes dándole a la FLECHA IZQUIERDA un sin fin de veces.

Gracias por esta posibilidad, es muy muy útil.

ENGLISH:
Roberto:

Excellent!!

What I was testing without problems.

Just a comment for aesthetic or practical level.

In the example if I go to column 6 and I click on the column 1 (which is locked) to edit, to confirm the issue with the ENTER and then press the LEFT ARROW to return to the column 6, I often press the LEFT ARROW as cells I have "hidden" ideally column 6 fence immediately.

This is just a matter of practicality, I guess in those huge GRIDs LEFT ARROW giving endless times.

Thank you for this opportunity, it is very helpful.
Saludos, Fernando Chirico.
User avatar
fchirico
Posts: 324
Joined: Sat Aug 23, 2008 11:27 pm
Location: Argentina

Re: I had an epiphany (another boring story :)

Post by fchirico »

fchirico wrote:
Roberto Lopez wrote:Well....

.....En el ejemplo si voy hasta la columna 6 y hago click en la columna 1 ( la que está LOCKEADA ) para editarla, al confirmar la edición con el ENTER y luego presiono la FLECHA IZQUIERDA para volver a la columna 6, debo apretar tantas veces la FLECHA IZQUIERDA como celdas tengo "ocultas", lo ideal sería que valla a la columna 6 de inmediato........
Perdón, cuando dije FLECHA IZQUIERDA, quise decir FLECHA DERECHA.

Sorry, when I said LEFT ARROW, RIGHT ARROW meant.
Saludos, Fernando Chirico.
Post Reply