Function InputWindow()

Creative ideas/suggestions for HMG

Moderator: Rathinagiri

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

Function InputWindow()

Post by Pablo César » Wed Dec 31, 2014 11:20 am

Hi all,

I think its already finished with improvements (at least for this year) :lol:
Screen4.png
Screen4.png (192.2 KiB) Viewed 1564 times
ChangeLog:
Inconsistencies check routine in arrays has been added.
New properties for the Grid inserted into the function (My_UDF) Demo.
New visualization of the results fit with MsgDebug2.
New on release function, to reset all hotkeys and remove any event.

<Code source files were removed because there is a updated version ahead of this topic>

I hope you enjoy !
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 » Wed Dec 31, 2014 3:02 pm

Pablo César wrote:I think its already finished with improvements (at least for this year)
Not yet ! At least for us southern americans, not finished yet the 2014... :)

I added a PASSWORD item (in TextBox), as it has required Fernando in this post.
Screen4.png
Screen4.png (259.73 KiB) Viewed 1549 times
It was made thru the aFormats parameter containing the PASSWORD and aValues could be assigned any string or empty one.

In this requirement at WishList, I hope to find a canonical way to switch common/password modes at TextBoxes.

<Code source files were removed because there is a updated version ahead of this topic>

Happy new year ! :D
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 » Thu Jan 01, 2015 11:41 am

Hi all, happy new year !

Keeping the retrocompatibility with InputWindow.

I saw that was not in use character values and with Nil format, so I decided to add more one option:
LABELs as control (at right side of screen).

This would it be useful when we need to write just something or even separate control saying something.
Screen4.png
Screen4.png (307.83 KiB) Viewed 1511 times
This label (as control at right side of screen) will start at where another label has stopped. With this it will be easy for pairing between it (like as it were concatenated). So by this reason Labels (as control at right side of screen) would start with spaces if you want to be separated with other label. Another idea, is to let empty the first label (here ilustrated as "Field 10 (Label)") then only the label (here in red color) will be displayed.
Screen3.png
Screen3.png (7.74 KiB) Viewed 1497 times
I would like to receive any comment if something let without functionality or if there is any other difficulties. Remembering this InputWindow is a practical tool for a simple editions.
demo3 (Executable file).rar
(1.06 MiB) Downloaded 127 times
demo3 (Source files).rar
(6.59 KiB) Downloaded 132 times
I hope you enjoy ! :D
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
mol
Posts: 3185
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 211 times
Been thanked: 112 times
Contact:

Post by mol » Thu Jan 01, 2015 12:38 pm

Thanks for this new year gift!

User avatar
Rathinagiri
Posts: 5263
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 » Thu Jan 01, 2015 2:01 pm

Very nice one Pablo.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

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 » Thu Jan 01, 2015 4:48 pm

mol wrote:Thanks for this new year gift!
Yes, early at year ! :)

Thank you Rathi !
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Steed
Posts: 385
Joined: Sat Dec 12, 2009 3:40 pm
Has thanked: 1 time
Been thanked: 2 times

Post by Steed » Thu Jan 01, 2015 7:20 pm

Thanks, happy new year

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 » Thu Jan 01, 2015 7:51 pm

You're welcome, Ed !
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 » Thu Jan 01, 2015 9:05 pm

There is more one example using InputWindow: here (HMG Versions installed)

Here is using a LABEL as control in InputWindow.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Rathinagiri
Posts: 5263
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 Jan 17, 2015 7:15 pm

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.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

Post Reply