Tab Control Child Autosize

Started by Gary Stout, November 10, 2009, 04:08:11 PM

Previous topic - Next topic

Gary Stout

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

Paul Squires

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.
Paul Squires
PlanetSquires Software

Paul Squires

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.
Paul Squires
PlanetSquires Software

Gary Stout

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

Ivan Iraola

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.
Android App Developer
http://www.uncledroid.com

Gary Stout

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

Paul Squires

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.
Paul Squires
PlanetSquires Software