About Store Forum Documentation Contact



Post Reply 
Why was Region.setSize removed?
Author Message
fatcoder Offline
Member

Post: #1
Why was Region.setSize removed?
I use Region.setSize to manually force regions to a certain size independent of the controls in them. For example, I have a region control that I use to manually draw text in. I can set the size of that region based on how big that text is. The text itself is not a control, so the region would not be able to auto-size as it has no controls. How do I handle manually setting a region's size if I upgrade, or can you put Region.setSize back in?
08-04-2014 01:19 AM
Find all posts by this user Quote this message in a reply
SamerK Offline
Member

Post: #2
RE: Why was Region.setSize removed?
Hi,
try to use region.virtualSize(); it is similar to setSize.
08-04-2014 03:00 AM
Find all posts by this user Quote this message in a reply
fatcoder Offline
Member

Post: #3
RE: Why was Region.setSize removed?
Hey thanks for the quick reply. I should of looked at the header comments a bit better before posting. Cheers mate.
08-04-2014 08:47 AM
Find all posts by this user Quote this message in a reply
SamerK Offline
Member

Post: #4
RE: Why was Region.setSize removed?
You welcome, it took me too sometime to figure it out.
08-04-2014 01:58 PM
Find all posts by this user Quote this message in a reply
Post Reply