HMG GridPlus - New Version

Utilities like DBU, Make, IDE written in HMG/ used to create HMG based applications

Moderator: Rathinagiri

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

Re: HMG GridPlus - New Version

Post by mol » Wed Nov 23, 2016 8:48 am

Smartphone is revelation when I need quickly check some forums for new posts. With dictionary, my xperia z3 is really great tool event for writing posts.
Of course, it's unusable for programming (I've tested by remote desktop and teamviewer :-D ).

PS. this discussions is out of main topic :)

User avatar
Rathinagiri
Posts: 5268
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 171 times
Been thanked: 174 times
Contact:

Post by Rathinagiri » Thu Nov 24, 2016 4:41 pm

I am updating with a new version of Grid+

Change log:

- Removed Panel Window and On Paint event handling and replaced with simple bitmap based image control (Thanks to Pablo for the idea)
- Bug fixes
GridPlus20161124.zip
(23.89 KiB) Downloaded 213 times
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 » Fri Nov 25, 2016 12:03 am

Dear Rathi,

I do not know if you did not understand what I had proposed or just you wanted to simplify doing it in a simpler way.

I have two ideas and I will try to exemplify better than maybe you can adopt to leave with a more professional face regarding respect.

1. If you want to control the margins and even the grid model sizes for the maximum and minimum size of the paper size, you could better refine the values that should be variable according to the sheet size and the sum of the 3 columns of the Grid_1 to cap the width of the selected sheet size.
Screen15.png
Screen15.png (26.52 KiB) Viewed 4036 times
Demo1.rar
(1.24 MiB) Downloaded 115 times
2. The other example attached here is a brilliant idea of an example of HMG EE from Verchenko Andrey where he divides the image into three parts and as he clicks on the image it says which part is selected. This could be divided into millimeters in an array and you can make the blue colored cross line forming the border or the margins. I did not test but I believe it is possible.
Screen16.png
Screen16.png (28.85 KiB) Viewed 4036 times
Download of pack of message below

In the option 1, it's not adjusted the range of each column at EventHandler. The ruler I have edited but seems it is not correct. Some of milimiters is thiner than other, probably is image adjustment. Header of Grid_1 you can display the width value of each column and font is Courier New because is monospaced (more easy with PADL/PADR).

Sorry I can not finish for you, becaause you are using OOP and also I do not know what you gonna adopt for you.
Last edited by Pablo César on Fri Nov 25, 2016 12:18 am, edited 6 times in total.
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 » Fri Nov 25, 2016 12:06 am

I can't attachd this file in my previous message... :( probably is a limit of it.

Here it's going...
Attachments
Demo2.rar
ouse click on the one picture which is divided into 3 parts
(524.29 KiB) Downloaded 131 times
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
srvet_claudio
Posts: 2044
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Has thanked: 35 times
Been thanked: 148 times
Contact:

Post by srvet_claudio » Fri Nov 25, 2016 12:45 am

Rathinagiri wrote:Pablo,

I have just now seen your post and I like the idea of doing away with Panel Window (Which makes the library buggy, I don't know why. :( ) and having two grids one for margin and another for resizing.

I will go through your code and decide upon.
What is the bug that has the panel window?
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com

User avatar
Rathinagiri
Posts: 5268
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 171 times
Been thanked: 174 times
Contact:

Post by Rathinagiri » Fri Nov 25, 2016 4:05 am

srvet_claudio wrote:
Rathinagiri wrote:Pablo,

I have just now seen your post and I like the idea of doing away with Panel Window (Which makes the library buggy, I don't know why. :( ) and having two grids one for margin and another for resizing.

I will go through your code and decide upon.
What is the bug that has the panel window?
Later, I have found that it is not the Panel Window which gives problem. But, when we try to draw the scale every time the On Paint event is called, the system hangs. So, I have replaced it with a bitmap.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
Rathinagiri
Posts: 5268
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 171 times
Been thanked: 174 times
Contact:

Post by Rathinagiri » Fri Nov 25, 2016 4:20 am

Pablo,

As you have mentioned, I made this for simplicity.

People don't try to change the margin then and there. They want to adjust the column widths most of the times.

Any how, if they want to modify the margin, they can do well from the bottom text box provided for.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
srvet_claudio
Posts: 2044
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Has thanked: 35 times
Been thanked: 148 times
Contact:

Post by srvet_claudio » Fri Nov 25, 2016 4:28 am

Rathinagiri wrote:
srvet_claudio wrote:
Rathinagiri wrote:Pablo,

I have just now seen your post and I like the idea of doing away with Panel Window (Which makes the library buggy, I don't know why. :( ) and having two grids one for margin and another for resizing.

I will go through your code and decide upon.
What is the bug that has the panel window?
Later, I have found that it is not the Panel Window which gives problem. But, when we try to draw the scale every time the On Paint event is called, the system hangs. So, I have replaced it with a bitmap.
Thanks, I will check this problem.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com

User avatar
Rathinagiri
Posts: 5268
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 171 times
Been thanked: 174 times
Contact:

Post by Rathinagiri » Fri Nov 25, 2016 1:03 pm

I am uploading a new version.
GridPlus20161125.zip
(24.5 KiB) Downloaded 174 times
Change log:

- Used virtual grid for preview
- Configure Left and right margins by dragging the top left and right corners of the preview grid. :)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
Rathinagiri
Posts: 5268
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 171 times
Been thanked: 174 times
Contact:

Post by Rathinagiri » Mon Nov 28, 2016 6:05 am

I have found a simple solution for fixing the left and right margin by using sliders. :) Now I think I can concentrate on other things.
GridPlus20161128.zip
(24.17 KiB) Downloaded 195 times
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

Post Reply