![]() ![]() Use the and tags to create super and subscripts (these tags can be shortened to and ). The strikeout color only applies to the text within that … tag pair, if you want to use that color again, you must set it again. "The item is available in navy, teal or sage." The strikeout line is normally the same color as the text, but you can specify a different color, for example red. Use the tag for struck out text (can be shortened as ). Underlines can be double or thick, but they are always ended with. However, what if a field or variable being merged into the text contains a and tags to generate bold or italic text, just like HTML. It even includes a formula to automatically display today’s date. Here is another example that uses a Text Display object to create an entire letter with data merged into the text. #RICH TEXT EXAMPLE CODE#This example creates a mailing label, with the name displayed in bold text and the zip code in blue. The examples on this page all show fixed text, but what if you want to include database data in the rich text? That’s not a problem, simply include the fields or variables in the formula. Basically, RTML is a version of Apple’s native text styling code that is readable and understandable by humans. RTML includes almost all of the text attributes provided by Apple’s native text styling code (NSAttributedString). Technical Note: Basic RTML tags are the same as HTML, but many RTML tags are unique – for example tab stops, line & paragraph spacing, justification, text wrapping options etc. There is a special tag that allows you to insert any unicode character, and as mentioned above, you can also change the tag characters to make it easier to include characters. There are no character entities in RTML ( >, <, etc.). If your text includes two or more spaces in a row, they will be displayed in the final output rather than being coalesced into a single blank. To start a new line, use a carriage return character (there is no or tag). Whitespace characters (space, tab, carriage return, line feed) are passed thru “as-is”. Unlike HTML, RTML doesn’t do any special whitespace processing. This example shows a tag with two parameters, alpha and beta: The parameters are separated from the tag name and each other with the : character. Some RTML tags have one or more parameters. However, RTML gives you the option to change these characters to make it easier to include the characters in the body text. Like HTML, RTML uses embedded tags to modify the appearance of the displayed text. If you’re familiar with HTML you’ll find many aspects of RTML familiar, but there are significant differences. ![]() This code produces this custom menu which includes bold text (the word Cube) and various icons. To enable rich text in a custom menu, set the font to "#RichText". Rich text can also be enabled in Text Lists, Push Buttons, and Data Buttons. #RICH TEXT EXAMPLE HOW TO#(Of course you also have to put one or more tags into your text!) This example shows how to enable rich text in a Text Display Object. To enable rich text, check the Rich Text checkbox. Graphic objects in a form normally display plain text. See below for detailed information about each of these tags. Wrap Mode (wordwrapping/charwrapping/clipping/ truncatingtail/truncatinghead/truncatingmiddle) Horizontal Alignment (left/center/right/justified)Įxtra space before/after paragraphs (points) #RICH TEXT EXAMPLE FULL#Image (name may include relative or full path) There are about two dozen tags available, as listed in this table. Here is a simple example with bold and italic text. The basic idea of rich text is that you add tags to the text to control the style, in a manner that is very similar to HTML. Choose Panorama X Video Training from the Help menu to access the training sessions. In addition to the material below, there is also an intensive Panorama X video training session titled Text Objects which covers rich text in depth. The Rich Text option can even be used in Custom Menus.īy the way, the icons in the examples above all come from Font Awesome Icons, which are built in to Panorama X. Here are some examples of objects with rich text. The Rich Text option is available in Text Display Objects, Text List Objects, Push Button Objects and Data Button Objects. ![]() You can control the format of the displayed text using tags that are similar in concept to those used for formatting in HTML. The Rich Text option allows text to be displayed with multiple styles, fonts, colors and alignments – you can even include images and icons. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |