Page 1 of 1
					
				Checking Group Size to see if scrollbar is needed?
				Posted: Sun Sep 22, 2013 3:21 pm
				by makeshyft
				Hello LiveCoders
Just wondering how you would approach reading the INNER Content of a group to check if I should activate the scrollbar or not.  Both vertical and horizontal I guess.  I'm kinda scratching my head on this, so I thought I'd ask cuz I'm sure its been done.
Thanks,
Tom
			 
			
					
				Re: Checking Group Size to see if scrollbar is needed?
				Posted: Sun Sep 22, 2013 3:32 pm
				by Klaus
				Hi Tom,
you can compare 
1. -> the width/height of grp XYZ = the actual "visible" size, not all content may be visible.
with
2. -> the formattedwidth/formattedheight of grp XYZ = the size necessary to display all its content.
if 2 > 1 then scrollbars neccessary  
 
 
Best
Klaus
 
			
					
				Re: Checking Group Size to see if scrollbar is needed?
				Posted: Sun Sep 22, 2013 3:38 pm
				by makeshyft
				got it. didn't know about the formatted width function. Thank you Klaus.
			 
			
					
				Re: Checking Group Size to see if scrollbar is needed?
				Posted: Sun Sep 22, 2013 3:43 pm
				by Klaus
				Hi TOm,
check the dictionary for "formatted*******"!
There are a LOT of "formatted" things that you can query,
even the widht/height/top/left/right etc. of text chunks in fields! 
Love it! 
 
 
Best
Klaus
 
			
					
				Re: Checking Group Size to see if scrollbar is needed?
				Posted: Sun Sep 22, 2013 8:25 pm
				by makeshyft
				I see that ......very useful functions indeed.  I've done the whole "looking through dictionary" thing before, and saw a lot of useful functions.... but its hard to remember them all until one uses them somewhere.
Thanks brother....