PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Gary Stout on November 10, 2009, 04:08:11 PM

Title: Tab Control Child Autosize
Post by: Gary Stout on November 10, 2009, 04:08:11 PM
Paul,

I think there is a bug/issue with the TabControlChildAutosize. From what I can tell, when set to true, it only auto sizes the first tab (child form). Any additional child forms do not increase in size to fill the tab control.

In your example "tab on a tab", this is fairly obvious if you set the background for each child form to a different color. You will see how the first tab (child form) of both tabs fills each tab control, but the second and third tabs of each tab control runs off of the tab control itself.

Hope this makes sense
Gary
Title: Re: Tab Control Child Autosize
Post by: Paul Squires on November 11, 2009, 12:13:57 PM
hmmm.... yeah, it appears that you may be right on this one. I will check out the source code to see where the screw up is. I'll report back with the results.
Title: Re: Tab Control Child Autosize
Post by: Paul Squires on November 11, 2009, 12:32:28 PM
Gary - you were right. I had a misplaced "Exit Function" in the loop that resized the tab control children. Removed that code and now everything works fine. That makes 17 fixes/changes/additions for the upcoming update.
Title: Re: Tab Control Child Autosize
Post by: Gary Stout on November 11, 2009, 08:13:25 PM
Cool! Glad you were able to find the culprit. For the time being, I set Autosize to false and just manually adjusted the form size, but having autosize working will be handy.

Thanks,
Gary
Title: Re: Tab Control Child Autosize
Post by: Ivan Iraola on November 11, 2009, 09:11:19 PM
Gary, actually, if you select FALSE FALSE then compile/run your app and then change them to TRUE TRUE it resize them automatically. A quick workaround until it gets fixed.
Title: Re: Tab Control Child Autosize
Post by: Gary Stout on November 12, 2009, 12:58:35 AM
Ivan,

Thanks for the tip! If I know Paul, it won't be long before we have an update anyway. Sounds like he has been busy between filling orders, fixing some minor issues and providing tech support.

Gary
Title: Re: Tab Control Child Autosize
Post by: Paul Squires on November 12, 2009, 08:17:19 AM
That is exactly what I have been up to. :)

Lots of little fixes coming in the 3.03 update. Last count, I think that I made 23 changes/fixes/additions. Nothing too mind blowing, just a tweak here and there. Not sure when I will release it. Things are starting to settle a bit over the last couple of days (although yesterday was a holiday), so the update should come out soon.