wrap text in label

More
13 years 6 months ago #33400 by beltramidave
Is it possible to wrap text in a label? If so, what is the formatt?
Thanks

Please Log in to join the conversation.

More
13 years 6 months ago #33401 by BigJohnT
Replied by BigJohnT on topic wrap text in label
I'm pretty sure pyvcp can not wrap text. I know GladeVCP can.

John

Please Log in to join the conversation.

More
13 years 6 months ago #33402 by beltramidave
Replied by beltramidave on topic wrap text in label
I am pretty sure that I did it on button text, but I don't recall how.Thanks

Please Log in to join the conversation.

More
13 years 6 months ago #33403 by beltramidave
Replied by beltramidave on topic wrap text in label
Figured it out...just use <wraplength>" "</wraplength>

Please Log in to join the conversation.

More
13 years 6 months ago #33404 by BigJohnT
Replied by BigJohnT on topic wrap text in label
Can you show me the full syntax of the label you make with wraplength?

John

Please Log in to join the conversation.

More
13 years 6 months ago #33407 by beltramidave
Replied by beltramidave on 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

Please Log in to join the conversation.

More
13 years 6 months ago #33456 by bigalex
Replied by bigalex on 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:

Please Log in to join the conversation.

More
13 years 6 months ago #33458 by beltramidave
Replied by beltramidave on 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.

Please Log in to join the conversation.

More
13 years 6 months ago #33461 by bigalex
Replied by bigalex on topic wrap text in label
Thanks a lot Dave.

bigalex :blink:

Please Log in to join the conversation.

More
10 years 11 months ago #64963 by Askjerry
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

Please Log in to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum