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
Checking Group Size to see if scrollbar is needed?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Checking Group Size to see if scrollbar is needed?
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
Re: Checking Group Size to see if scrollbar is needed?
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
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?
got it. didn't know about the formatted width function. Thank you Klaus.
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
Re: Checking Group Size to see if scrollbar is needed?
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
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?
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....
Thanks brother....
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com