fatcoder
Member
|
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 |
|
SamerK
Member
|
RE: Why was Region.setSize removed?
Hi,
try to use region.virtualSize(); it is similar to setSize.
|
|
08-04-2014 03:00 AM |
|
fatcoder
Member
|
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 |
|
SamerK
Member
|
RE: Why was Region.setSize removed?
You welcome, it took me too sometime to figure it out.
|
|
08-04-2014 01:58 PM |
|