I used this and it worked on portions of the stacks:
Code: Select all
on preOpenStack
set the textSize of this stack to 18
end preOpenStack
Thank you,
Linda
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
on preOpenStack
set the textSize of this stack to 18
end preOpenStack
Code: Select all
repeat with y = 1 to the number of flds
if the last char of the name of fld y = "x" then set the textSize of fld y to 12
end repeat
The presetting was only a test and then I realized that I had the message path "upside down" in that if a control has it specifically set then it does not inherit from the stack. It was a mistake that I quickly realized. I wanted to show that I was trying and not just sucking info from the forum members.
Sorry if I was not clear. I am going through a lot of the LiveCode Scripting Conference stacks. I don't want to go to every script or every property of every control on every card of those stacks just to change the text size. I was hoping that I could load a stack into LC and then have a script that I could place once in the stack somewhere, either in say the preOpenStack or in the Message Box that would alter the textSize within a stack. Do it once, save it and "ta da!" magic, I could then read more comfortably.And if there are only a few that need their own value, then just do so by hand.
Code: Select all
on mouseUp
repeat with x = 1 to the number of lines of the openStacks
repeat with y = 1 to the number of cds of stack line x of the openStacks
repeat with u = 1 to the number of controls of cd y of stack line x of the openStacks
set the textSize of control u of cd y of stack line x of the openStacks to 12
end repeat
end repeat
end repeat
end mouseUp