Grid without Enter Key

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
sudip
Posts: 1446
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India
Has thanked: 5 times
Been thanked: 1 time

Grid without Enter Key

Post by sudip » Mon Mar 16, 2009 3:36 pm

Hi,

I am learning grid. In HMG, grid behaves differently from normal window grid. Users have to press Enter Key or Double Click to activate Edit Mode. There must be some reasons for this behavior. I don't know it :(

Can you please tell me the reason?

Is there any way, when user press a key, Edit mode will be automatically activated, like normal windows grid?

With best regards.

Sudip
With best regards,
Sudip

User avatar
Rathinagiri
Posts: 5263
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Mon Mar 16, 2009 3:48 pm

I think I don't get your point as well. You want which key to be pressed to activate edit?

You mean by a spreadsheet like behaviour?

In place edit is actually a trick made by Roberto by defining a titleless window with the respective control over and above the required filed.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
sudip
Posts: 1446
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India
Has thanked: 5 times
Been thanked: 1 time

Post by sudip » Mon Mar 16, 2009 3:54 pm

Sorry Rathinagiry!

I couldn't express it. Yes, "Spread Sheet" like behavior! Can it be done with HMG?

And thank you for explaining the tricks.

With best regards.

Sudip
With best regards,
Sudip

User avatar
Rathinagiri
Posts: 5263
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Mon Mar 16, 2009 4:04 pm

Nope. As of now we can't do that.

However, it is possible to alter just a single cell using a double click of a mouse.

Otherwise, if you press enter key and get edit activated, you have to go through the full row for all the columns one by one.

I think you want some of the columns shall be allowed to edit and some of them shall not be allowed to edit. Isn't it?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
Rathinagiri
Posts: 5263
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Tue Mar 17, 2009 7:16 am

In this context, I had slightly altered the HMG source code to allow to edit some and not all of the grid columns.

For example, I had attached an exe file (Sudip's one to many sample), in which we need not edit 'rate' and 'amount' columns.

HMG's possibility is just that gr8. :)

You can download if from here (640 KB) and run for yourselves.

N.B.:
Since it alters the main source code of HMG's official version, I can't disclose the alterations in the absence of Roberto's approval.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
esgici
Posts: 4508
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 385 times
Been thanked: 111 times
Contact:

Post by esgici » Tue Mar 17, 2009 10:55 am

Hi Giri

There is a problem in this URL :

http://www.diamondcrackers.com/giri/hmg/sudip.zip

Regards

--

Esgici
Viva INTERNATIONAL HMG :D

User avatar
Rathinagiri
Posts: 5263
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Tue Mar 17, 2009 12:27 pm

Now the problem is solved esgici. Kindly check up and tell.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
esgici
Posts: 4508
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 385 times
Been thanked: 111 times
Contact:

Post by esgici » Tue Mar 17, 2009 12:32 pm

Hi Giri

Yes, now it's OK. Thanks.

Regards

--

Esgici
Viva INTERNATIONAL HMG :D

User avatar
sudip
Posts: 1446
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India
Has thanked: 5 times
Been thanked: 1 time

Post by sudip » Tue Mar 17, 2009 1:12 pm

Hi Rathinagiri,

Thank you for the "magic" in grid. Whole day I was not present in my office (I am a free-lance programmer). I went about 100 km away from the city to install an update to one of my clients!

The old software was made with clipper, I gave them update developed with xHarbour+gtwvw. I am wating when I shall give them update with HMG :)

Regarding grid, as you wouldn't tell the trick with out permission of Roperto Lopez, we can do one thing, try it by ourselves :) (too much +ve thingking ;))

BTW, is there any way where user can edit a cell of a grid without pressing enter or double click? (Actually,

(Now I have to put some buttons in "OUR" One-To-Many example)

Regards.

Sudip
With best regards,
Sudip

User avatar
Rathinagiri
Posts: 5263
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Tue Mar 17, 2009 1:27 pm

is there any way where user can edit a cell of a grid without pressing enter or double click?
I don't know about this, and which key you wish to press anyway!?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

Post Reply