Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 06-29-2009, 08:20 AM   #1

momentom's Avatar

Join Date: Jan 2007
Location: ldn
Posts: 144
Ignore this user

Thanks: 13
Thanked 15 Times in 13 Posts



Text_???? Syntax

I have some code that places text onto my MultiCharts screen as signals. I want to make the text BOLD. I looked in the TS EL books and there seems to be every text command except that one. Anyone have a clue?

TIA
momentom is offline  
Reply With Quote
Old 06-29-2009, 09:09 AM   #2

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,588
Ignore this user

Thanks: 2,026
Thanked 1,402 Times in 862 Posts



Re: Text_???? Syntax

Text_SetAttribute

Sets an attribute of the text in a text object with the specified ID number;
returns a value of 0 if the attribute was successfully set,
and a value of -2 if the specified object ID number is invalid.

The following text attributes can be set: border, bold, italic, strike-out, and underline.

Usage

Text_SetAttribute(ObjectID, Attribute, LogicalExpression)


Parameters

ObjectID - a numerical expression specifying the object ID number

Attribute - a numerical expression specifying the attribute:

0 - border
1 - bold
2 - italic
3 - strike-out
4 - underline

LogicalExpression - a logical value; True = on and False = off


Note

An object-specific ID number is returned by Text_New when the text object is created.


Example

Set the attribute "bold" to on for the text in a text object with the ID number of 3:

Value1 = Text_SetAttribute(3, 1, True );





Source: EasyLanguage / PowerLanguage manual

Last edited by Tams; 06-29-2009 at 09:44 AM.
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
momentom (06-29-2009)
Old 10-29-2009, 03:02 PM   #3

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,588
Ignore this user

Thanks: 2,026
Thanked 1,402 Times in 862 Posts



Re: Text_???? Syntax

other text manipulation keywords

Text_SetAttribute
Text_SetBorder
Text_SetFontName
Text_SetSize (MultiCharts only)
Text_SetString

color
Text_SetBGColor
Text_SetColor

placement
Text_SetLocation_s (MultiCharts only)
Text_SetLocation
Text_SetStyle
__________________


..........This is a terribly difficult question to answer. The only satisfactory answer is: "It depends"...

Last edited by Tams; 10-29-2009 at 03:13 PM.
Tams is offline  
Reply With Quote

Reply

Tags
easylanguage, text

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


All times are GMT -4. The time now is 02:42 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.