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 for Programming
 LabTalk Forum
 Transparent Text Label
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

sebbey

Germany
70 Posts

Posted - 07/20/2012 :  03:01:18 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Penn

China
644 Posts

Posted - 07/23/2012 :  05:06:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

sebbey

Germany
70 Posts

Posted - 07/23/2012 :  07:09:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Penn

China
644 Posts

Posted - 07/23/2012 :  10:54:45 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Edited by - Penn on 07/23/2012 10:55:18 PM
Go to Top of Page

sebbey

Germany
70 Posts

Posted - 07/24/2012 :  02:01:58 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Penn,

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

Sebbey
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