Grid without Enter Key

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Grid without Enter Key

Post by sudip »

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: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Grid without Enter Key

Post by Rathinagiri »

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: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: Grid without Enter Key

Post by sudip »

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: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Grid without Enter Key

Post by Rathinagiri »

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: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Grid without Enter Key

Post by Rathinagiri »

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: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Grid without Enter Key

Post by esgici »

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: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Grid without Enter Key

Post by Rathinagiri »

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: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Grid without Enter Key

Post by esgici »

Hi Giri

Yes, now it's OK. Thanks.

Regards

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: Grid without Enter Key

Post by sudip »

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: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Grid without Enter Key

Post by Rathinagiri »

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