wrap text in label

More
30 Apr 2013 01:41 - 30 Apr 2013 01:41 #33400 by beltramidave
beltramidave created the topic: wrap text in label
Is it possible to wrap text in a label? If so, what is the formatt?
Thanks
Last Edit: 30 Apr 2013 01:41 by beltramidave.
More
30 Apr 2013 01:48 #33401 by BigJohnT
BigJohnT replied the topic: wrap text in label
I'm pretty sure pyvcp can not wrap text. I know GladeVCP can.

John
More
30 Apr 2013 02:05 #33402 by beltramidave
beltramidave replied the topic: wrap text in label
I am pretty sure that I did it on button text, but I don't recall how.Thanks
More
30 Apr 2013 02:25 #33403 by beltramidave
beltramidave replied the topic: wrap text in label
Figured it out...just use <wraplength>" "</wraplength>
More
30 Apr 2013 02:38 #33404 by BigJohnT
BigJohnT replied the topic: wrap text in label
Can you show me the full syntax of the label you make with wraplength?

John
More
30 Apr 2013 04:01 #33407 by beltramidave
beltramidave replied the topic: wrap text in label
<label>
<wraplength>"250"</wraplength>
<justify>"left"</justify>
<text>"To program: Move to desired position, push Program, then push Custom 'x' button, then push Program to run"</text>
<font>(Helvetica",10)</font>
</label>

This worked on button text as well.

Dave
The following user(s) said Thank You: BigJohnT, eFalegname
More
30 Apr 2013 23:10 #33456 by bigalex
bigalex replied the topic: wrap text in label
Hi Dave.
What you discovered is amazing !
Is it really working with the existing pyVCP widgets (label,button as you told) or do you have a modified version ?

bigalex :blink:
More
30 Apr 2013 23:22 #33458 by beltramidave
beltramidave replied the topic: wrap text in label
It is working with labels and buttons. Attached is a screenshot of using it for a label. Glad that I could finally contribute something instead of always wanting.
Attachments:
The following user(s) said Thank You: bigalex
More
30 Apr 2013 23:36 #33461 by bigalex
bigalex replied the topic: wrap text in label
Thanks a lot Dave.

bigalex :blink:
More
08 Nov 2015 04:55 - 08 Nov 2015 05:21 #64963 by Askjerry
Askjerry replied the topic: Need to update PYVCP Documentation
We need to get this information into the PYVCP documentation. I was wondering how to do this and was lucky to find this post.
I did a search on MULTI LINE with no results.

I don't recall seeing the <wraplength> or the <justify> modifiers in there.
I found that not only can you have <bg>#000000</bg> to specify a background color... but also that <fg>#ffffff</fg> works to allow specification of a foreground color.

Now I am wondering if there are other modifiers??? (Time to go play I suppose.) ;)

I also cannot get <multilabel> to work... but i am going to start a new thread on it if I can't results as that is a different topic.

Jerry
Last Edit: 08 Nov 2015 05:21 by Askjerry.
Time to create page: 0.149 seconds
Powered by Kunena Forum