IonicWind Software

IWBasic => IWGrid => IWGrid Issues => Topic started by: ckoehn on February 24, 2015, 09:52:07 AM

Title: IWGrid resizing
Post by: ckoehn on February 24, 2015, 09:52:07 AM
LarryMc,

I made a grid with 255 rows, 7 columns.   When I resize it height wise, it doesn't show all the rows or fill the resized grid.  I used the SETSIZE command to set the new grid size.  Column resizing worked fine.

Later,
Clint
Title: Re: IWGrid resizing
Post by: LarryMc on February 24, 2015, 11:52:35 AM
I'll look into it.
Thanks
Title: Re: IWGrid resizing
Post by: LarryMc on February 24, 2015, 11:55:38 AM
Clint
To save me some time could you provide me with a test program that shows me the exact problem?

thanks
Title: Re: IWGrid resizing
Post by: ckoehn on February 24, 2015, 01:24:01 PM
Sure can..

Later,
Clint
Title: Re: IWGrid resizing
Post by: LarryMc on February 24, 2015, 10:20:29 PM
It's not going to be a simple fix so it's going to take me a while to fix it but I'll "git-er-done".
Title: Re: IWGrid resizing
Post by: Brian on February 25, 2015, 03:56:13 AM
Larry,

I can send Clint my Fulfilment Grid program (which does resize properly). Might save you a bit
of time beating your brains out!

Clint, look at your Private Messages

Brian
Title: Re: IWGrid resizing
Post by: ckoehn on February 25, 2015, 07:35:31 AM
LarryMc - Thanks. I would appreciate it if you could fix it.

Brain - Sent you an email.

Later,
Clint
Title: Re: IWGrid resizing
Post by: LarryMc on February 25, 2015, 08:55:24 AM
Found the problem.!!!!
I was setting an internal variable for the grid height and width when the grid is initially created.
I use those two values in calculating where I'm at when drawing every thing on the screen.

Problem was I never accounted for the possibility of increasing the size of the grid once it was created.
Decreasing the size sort of took care of itself.

Reason I thought it was going to be hard to find is because that portion of the code is rather complicated to say the least and my brain is slowing down.  To be honest I sort of stumbled onto the problem area while I was jumping around in the code looking at various things and refamiliarizing myself with the code.

I deserved a little break anyway. 

Got to take my wife to Dr in a bit. 
Also need to do a little checking to make sure this fix doesn't break something else.
I'll try to issue a new release in the next 12-24 hours.