wrap text in label

More
30 Apr 2013 01:41 - 30 Apr 2013 01:41 #33400 by beltramidave
wrap text in label was created by beltramidave
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.

Please Log in or Create an account to join the conversation.

More
30 Apr 2013 01:48 #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 or Create an account to join the conversation.

More
30 Apr 2013 02:05 #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 or Create an account to join the conversation.

More
30 Apr 2013 02:25 #33403 by beltramidave
Replied by beltramidave on topic wrap text in label
Figured it out...just use <wraplength>" "</wraplength>

Please Log in or Create an account to join the conversation.

More
30 Apr 2013 02:38 #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 or Create an account to join the conversation.

More
30 Apr 2013 04:01 #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
The following user(s) said Thank You: BigJohnT, eFalegname

Please Log in or Create an account to join the conversation.

More
30 Apr 2013 23:10 #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 or Create an account to join the conversation.

More
30 Apr 2013 23:22 #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.
Attachments:
The following user(s) said Thank You: bigalex

Please Log in or Create an account to join the conversation.

More
30 Apr 2013 23:36 #33461 by bigalex
Replied by bigalex on topic wrap text in label
Thanks a lot Dave.

bigalex :blink:

Please Log in or Create an account to join the conversation.

More
08 Nov 2015 04:55 - 08 Nov 2015 05:21 #64963 by Askjerry
Replied by Askjerry on 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.

Please Log in or Create an account to join the conversation.

Time to create page: 0.068 seconds
Powered by Kunena Forum