The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Text formatting with "type" command.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Jose

Netherlands
93 Posts

Posted - 03/24/2000 :  12:20:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
The type command is used to send text to the script window (or other text window, depending on the type.redirection value), to the status bar, and to dialog boxes, as far as I know. I've tried to write formatted text in those places, and it seems impossible. If I command

type \b(bold)

or

type -b \b(bold)

I get exactly "\b(bold)", in the script window or in a dialog box, and not "bold". Why can I then read in the LabTalk manual, about the type command, the following note?

Note: You can also use escape sequences to format the output of text. For a complete listing of the escape sequences, see the label command.

Jose.

Laurie

USA
404 Posts

Posted - 03/28/2000 :  3:13:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Jose,

I have made a note here for our documentation group that the Note for the type command in the LabTalk manual needs to be removed. As you discovered, the only escape sequences (\n, \r, etc.) that you can use with the type command are the ones documented.

The Script Window, Results Log and Attention dialogs all do not allow for bold, superscript, etc (\b, \+).

Origin allows you to use these special formatting commands to control the display of text labels. All text labels (those created with the Text tool, the Add Text shortcut menu command, the LabTalk label command, as well as text plotted from a Label column will display according to the special formatting rules.

-----------
Laurie
Microcal Technical Support

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000