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 for Programming
 LabTalk Forum
 Transparent Text Label

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
sebbey Posted - 07/20/2012 : 03:01:18 AM
Origin Ver.: 8.6.0G
Operating System: Windows 7 Professional

Hi Guys,

I'm trying to put a watermark on my graph and therefore I was wondering if it's possible to create a transparent text label with a LabTalk script.
I was trying to work with


label Intern; //create text label "Intern"
text.color=color(0);


I found the "color(0)" code in the help file, but it doesn't work.

Can anyone help me with this?

Thanks in advance,
sebbey
4   L A T E S T    R E P L I E S    (Newest First)
sebbey Posted - 07/24/2012 : 02:01:58 AM
Hi Penn,

ok, I'll have to think of something else than a watermark then.
Thank you for your fast reply,

Sebbey
Penn Posted - 07/23/2012 : 10:54:45 PM
Hi Sebbey,

layer.color=0 will set the layer background color to none, which means the layer is transparent. You can set the page background with a color to see how it works. And there is no way to set the text label transparent, even using text.color=0 will not work.

Penn
sebbey Posted - 07/23/2012 : 07:09:14 AM
Hi Penn,

thanks for your answer. I know that the use of the color function in my script is not right, and I do know how to use this function (if i just want to change the color of a text for example
text.color=color(red);
)

But, if I look in the help file it says:

layer.color: Layer or worksheet heading color. Numbers from the color list, or transparent (0). ...

So I thougt it might be possible to make my text label transparent by using color(0).
Is there a way to create a transparent text label? Reading the color function page didn't really help me.

Sebbey
Penn Posted - 07/23/2012 : 05:06:05 AM
Hi sebbey,

You can find the object.color property in the Graphic Objects page. And the usage of the function color is not right in your script, please refer to the color function page for more details.

Penn

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