Page 3 of 5

Re: HMG GridPlus - New Version

Posted: Wed Nov 23, 2016 8:48 am
by mol
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 :)

Re: HMG GridPlus - New Version

Posted: Thu Nov 24, 2016 4:41 pm
by Rathinagiri
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 373 times

HMG GridPlus - New Version

Posted: Fri Nov 25, 2016 12:03 am
by Pablo César
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 6491 times
Demo1.rar
(1.24 MiB) Downloaded 262 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 6491 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.

HMG GridPlus - New Version

Posted: Fri Nov 25, 2016 12:06 am
by Pablo César
I can't attachd this file in my previous message... :( probably is a limit of it.

Here it's going...

Re: HMG GridPlus - New Version

Posted: Fri Nov 25, 2016 12:45 am
by srvet_claudio
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?

Re: HMG GridPlus - New Version

Posted: Fri Nov 25, 2016 4:05 am
by Rathinagiri
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.

Re: HMG GridPlus - New Version

Posted: Fri Nov 25, 2016 4:20 am
by Rathinagiri
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.

Re: HMG GridPlus - New Version

Posted: Fri Nov 25, 2016 4:28 am
by srvet_claudio
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.

Re: HMG GridPlus - New Version

Posted: Fri Nov 25, 2016 1:03 pm
by Rathinagiri
I am uploading a new version.
GridPlus20161125.zip
(24.5 KiB) Downloaded 326 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. :)

Re: HMG GridPlus - New Version

Posted: Mon Nov 28, 2016 6:05 am
by Rathinagiri
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 374 times