HMG GridPlus - New Version
Moderator: Rathinagiri
Re: HMG GridPlus - New Version
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 ).
PS. this discussions is out of main topic
Of course, it's unusable for programming (I've tested by remote desktop and teamviewer ).
PS. this discussions is out of main topic
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: HMG GridPlus - New Version
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
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
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
HMG GridPlus - New Version
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.
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.
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.
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.
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.
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
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- Pablo César
- Posts: 4059
- Joined: Wed Sep 08, 2010 1:18 pm
- Location: Curitiba - Brasil
HMG GridPlus - New Version
I can't attachd this file in my previous message... probably is a limit of it.
Here it's going...
Here it's going...
- Attachments
-
- Demo2.rar
- ouse click on the one picture which is divided into 3 parts
- (524.29 KiB) Downloaded 318 times
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
- srvet_claudio
- Posts: 2193
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: HMG GridPlus - New Version
What is the bug that has the panel window?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.
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: HMG GridPlus - New Version
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.srvet_claudio wrote:What is the bug that has the panel window?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.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: HMG GridPlus - New Version
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.
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.
South or North HMG is worth.
...the possibilities are endless.
- srvet_claudio
- Posts: 2193
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: HMG GridPlus - New Version
Thanks, I will check this problem.Rathinagiri wrote: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.srvet_claudio wrote:What is the bug that has the panel window?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.
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: HMG GridPlus - New Version
I am uploading a new version.
Change log:
- Used virtual grid for preview
- Configure Left and right margins by dragging the top left and right corners of the preview grid.
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.
South or North HMG is worth.
...the possibilities are endless.
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: HMG GridPlus - New Version
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.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.