Function InputWindow()

Creative ideas/suggestions for HMG

Moderator: Rathinagiri

Post Reply
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: Function InputWindow()

Post by bpd2000 »

Rathinagiri wrote:This is nice one. IMHO it can be used as an alternative to in-place-edit feature of Grid.

When an user double clicks/presses enter key, an InputWindow shall be opened and the grid data can be updated according to the InputWindow data. Initial data/label can be got from headers, widths, columncontrols, columnvalid, columnwhen etc.
+1
BPD
Convert Dream into Reality through HMG
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Function InputWindow()

Post by Pablo César »

Rathinagiri wrote:IMHO it can be used as an alternative to in-place-edit feature of Grid.

When an user double clicks/presses enter key, an InputWindow shall be opened and the grid data can be updated according to the InputWindow data. Initial data/label can be got from headers, widths, columncontrols, columnvalid, columnwhen etc.
Yeah Rathi, very good idea !

I will think something could if be done for auto-detecting. But the main idea its so good !

Thank you Rathi ! And please anybody be free to make any modification or suggestion. :D

B.Rgds
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Function InputWindow()

Post by Pablo César »

Rathinagiri wrote:This is nice one. IMHO it can be used as an alternative to in-place-edit feature of Grid.
Yes, this is a great idea :!:
Thank your Rathi to make remember. :D

By the way, I wish to refresh that also we can count with the new InputBox() we can make individual cell editions.

One example we have at ViewError in Grid as source editor when we double click in the specific line of source.
Screen2.png
Screen2.png (43.22 KiB) Viewed 3877 times

I think is going to be posible to do an easy way to implement InputWindow in Grid editing cells automactically.

In the example in attached is being defined as InputWindow2() as as a pilot test.
Then when is approved by HDT (HMG Development Team) we probably count to use it.

This example is going to be improved, changing different fields in Grid, like as for: DatePicker, ComboBox, Numeric TextBox, CheckBox and probably EditBox.

Now is working as string fields, but I need to test with all kind of Grids (with RowSource, with ColumnControls, with OnSave, with Virtual, with LockColumns, probably with ColumnValid and ColumnWhen too).
Screen1.png
Screen1.png (259.2 KiB) Viewed 3893 times
It's not replacing fields values into the Grid yet. So there much thing to do it about. In order to make easier usage. The main idea is just to add InputWindow(<Form_Name>,<Grid_Name>) at ON DBLCLICK event of Grid.
Very easy for user implement, doesn't it ?

Even I have not finished yet, I will leave the available here in attach executable and sources files for your appreciation.
InputWindow.rar
Source Files
(358.17 KiB) Downloaded 254 times
Demo4.rar
Executable File
(1.13 MiB) Downloaded 291 times
I hope you enjoy it ! :D
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: Function InputWindow()

Post by bpd2000 »

Nice
Continue
+1
BPD
Convert Dream into Reality through HMG
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Function InputWindow()

Post by Pablo César »

bpd2000 wrote:Nice
Thank you Dave ! :D Good to know you enjoyed.
bpd2000 wrote:Continue
+1
Sure ! :D

Probably It's going to take a little more time as used it could take, because I on vacations... but I love to growing up with HMG :!:
:D
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
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: Function InputWindow()

Post by serge_girard »

Great job Pablo!

Serge
There's nothing you can do that can't be done...
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Function InputWindow()

Post by Pablo César »

serge_girard wrote:Great job Pablo!
Dank je Serge!

I got this chance to get better thanks to our friends (good Rathi idea and Claudio's work with Grid, very impressive improvements).

This watermark in Grids is useful sometimes.
Probably his example C:\hmg.3.4.0\SAMPLES\Controls\Grid\GRID_40 should it be improved to show that !

Thanks to everybody whos makes comments, give new ideas and work together :!:
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Javier Tovar
Posts: 1275
Joined: Tue Sep 03, 2013 4:22 am
Location: Tecámac, México

Re: Function InputWindow()

Post by Javier Tovar »

Bien Pablo César, Bonito trabajo!

Saludos
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Re: Function InputWindow()

Post by Pablo César »

Gracias Javier :D
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
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: Function InputWindow()

Post by Rathinagiri »

Nice. There is a long way to go. But once it is over, I am sure it is a valuable module for HMG.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply