Page 1 of 3
Grid without Enter Key
Posted: Mon Mar 16, 2009 3:36 pm
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
Re: Grid without Enter Key
Posted: Mon Mar 16, 2009 3:48 pm
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.
Re: Grid without Enter Key
Posted: Mon Mar 16, 2009 3:54 pm
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
Re: Grid without Enter Key
Posted: Mon Mar 16, 2009 4:04 pm
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?
Re: Grid without Enter Key
Posted: Tue Mar 17, 2009 7:16 am
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.
Re: Grid without Enter Key
Posted: Tue Mar 17, 2009 10:55 am
by esgici
Hi Giri
There is a problem in this URL :
http://www.diamondcrackers.com/giri/hmg/sudip.zip
Regards
--
Esgici
Re: Grid without Enter Key
Posted: Tue Mar 17, 2009 12:27 pm
by Rathinagiri
Now the problem is solved esgici. Kindly check up and tell.
Re: Grid without Enter Key
Posted: Tue Mar 17, 2009 12:32 pm
by esgici
Hi Giri
Yes, now it's OK. Thanks.
Regards
--
Esgici
Re: Grid without Enter Key
Posted: Tue Mar 17, 2009 1:12 pm
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
Re: Grid without Enter Key
Posted: Tue Mar 17, 2009 1:27 pm
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!?