Hi guys! this is the first time im asking a question here
Is there any possible way to create a function were you can adjust all the components of your screen according to your screen size?
since i already made my app's UI, its hard for me to adjust all the component's hights and widths using the percentage option, so i thought why not adjust all the components when the screen initializes.
I found a way to do this using a list of components an all, but since my app is too big, its not practical to make a list of components. here's what i mean,
if i consider only labels and if i only have 3 of them,
for each item in list [ Label1,Label2,Label3] {
set label.fontsize of item to [Label.fontsize + ([screen1.width X screen1.hight] / a constant) ] //<---- havent worked on the equation yet..
by doing this, if the result of the equation is a minus value, the label fontsize will be smaller than the original and vice versa.
The problem i have here is, I CANT CREATE A LIST
my app is too big, it has A LOT of components so its literally impossible to create a list for every component and component type. is there a way to implement this function with a block that gives out a list of the components according to their type? "get all [component type]"
something like this,
for each item in list [get all 'labels'] {
set label.fontsize of item to [Label.fontsize + ([screen1.width X screen1.hight] / a constant) ]
I searched everywhere for an extension that could possibly contain a block with this function,
if there's anyone out there who could create an extension on this or could find me a better solution, it would be a really great help