Page 5 of 12

Re: Function InputWindow()

Posted: Sun Jan 18, 2015 5:24 am
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

Function InputWindow()

Posted: Sun Jan 18, 2015 1:06 pm
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

Function InputWindow()

Posted: Sat Feb 07, 2015 1:51 pm
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 3878 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 3894 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

Re: Function InputWindow()

Posted: Sat Feb 07, 2015 2:09 pm
by bpd2000
Nice
Continue
+1

Function InputWindow()

Posted: Sat Feb 07, 2015 2:25 pm
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

Re: Function InputWindow()

Posted: Sat Feb 07, 2015 2:36 pm
by serge_girard
Great job Pablo!

Serge

Function InputWindow()

Posted: Sat Feb 07, 2015 2:39 pm
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 :!:

Re: Function InputWindow()

Posted: Sat Feb 07, 2015 5:36 pm
by Javier Tovar
Bien Pablo César, Bonito trabajo!

Saludos

Re: Function InputWindow()

Posted: Sat Feb 07, 2015 5:42 pm
by Pablo César
Gracias Javier :D

Re: Function InputWindow()

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