I would like to create a button that has multiple lines of text, with each line a different format. Is that possible?
With a real button this will not work. But you can make a text object as wished and assign a script to it, thus it will work as a button.
How do I assign a script to a text object?
NOTE! with an object converted to a button, this is really TWO objects (one being the button). When you click or move these are as one Grouped Object. To edit with FileMaker Pro 16, use the Layout Objects dialog/inspector/window to see each part of the grouped object. These kinds of groupings have always happened, but now there is a different way to get to the 'parts'.
Another option is to use a single-segment button bar. Button bars allow you to calculate the label for a button so you can use text formatting functions, like:
"Line 1¶" &
TextStyleAdd (TextColor(TextSize("Line 2"; 18); RGB( 255; 0;0)); Bold)
Why? For what purpose ?
Considèr using a portal.
A vertically stacked button bar, one line of text per button, and use conditional formatting to style each.
You can also use a plain-ol' button - not a converted button.
Format the text in layout mode in a text box. Copy or cut the text out of the text box. Use the text tool, click into the button and paste the text. Just tested it to be sure.
Simply not true.
What am I doing wrong then, 'cause this is a screen shot out of FMPA 16 using the method I described:
When I tried this I just "superimposed" the text on the button. Pasting in the title box did not paste the formatting.
You have to cut the text using the text tool out of the text box (formatted text is now in your computer's paste buffer) and then paste it with the text tool by clicking the button directly on the layout and then pasting.
I succeeded. You were right. After selecting the 'T' tool I was able to select the existing button text and repalce it by Cmd-V.
I stand corrected. Chapeau.
Retrieving data ...