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
 All Forums
 Origin Forum
 Origin Forum
 Text formatting with "type" command.

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Jose Posted - 03/24/2000 : 12:20:00 PM
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.

1   L A T E S T    R E P L I E S    (Newest First)
Laurie Posted - 03/28/2000 : 3:13:00 PM
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


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000