Function InputWindow()

Creative ideas/suggestions for HMG

Moderator: Rathinagiri

Post Reply
User avatar
bpd2000
Posts: 1088
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 197 times
Been thanked: 102 times

Re: Function InputWindow()

Post by bpd2000 » Sun Jan 18, 2015 5:24 am

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
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César » Sun Jan 18, 2015 1:06 pm

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
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César » Sat Feb 07, 2015 1:51 pm

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 1915 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 1931 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 131 times
Demo4.rar
Executable File
(1.13 MiB) Downloaded 172 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: 1088
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 197 times
Been thanked: 102 times

Post by bpd2000 » Sat Feb 07, 2015 2:09 pm

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
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César » Sat Feb 07, 2015 2:25 pm

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: 2361
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 612 times
Been thanked: 124 times
Contact:

Post by serge_girard » Sat Feb 07, 2015 2:36 pm

Great job Pablo!

Serge

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César » Sat Feb 07, 2015 2:39 pm

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
Has thanked: 1 time
Been thanked: 2 times

Post by Javier Tovar » Sat Feb 07, 2015 5:36 pm

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
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César » Sat Feb 07, 2015 5:42 pm

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: 5264
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 » Sat Feb 07, 2015 6:09 pm

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