- Posts: 84
- Thank you received: 4
wrap text in label
- beltramidave
- Topic Author
- Offline
- Premium Member
-
Less
More
13 years 6 months ago - 13 years 6 months ago #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
Thanks
Last edit: 13 years 6 months ago by beltramidave.
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
-
Less
More
- Posts: 3410
- Thank you received: 994
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
John
Please Log in or Create an account to join the conversation.
- beltramidave
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 84
- Thank you received: 4
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 or Create an account to join the conversation.
- beltramidave
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 84
- Thank you received: 4
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 or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
-
Less
More
- Posts: 3410
- Thank you received: 994
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
John
Please Log in or Create an account to join the conversation.
- beltramidave
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 84
- Thank you received: 4
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
<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.
- bigalex
- Offline
- Senior Member
-
Less
More
- Posts: 79
- Thank you received: 0
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:
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.
- beltramidave
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 84
- Thank you received: 4
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.
The following user(s) said Thank You: bigalex
Please Log in or Create an account to join the conversation.
- bigalex
- Offline
- Senior Member
-
Less
More
- Posts: 79
- Thank you received: 0
13 years 6 months ago #33461
by bigalex
Replied by bigalex on topic wrap text in label
Thanks a lot Dave.
bigalex :blink:
bigalex :blink:
Please Log in or Create an account to join the conversation.
- Askjerry
- Offline
- Elite Member
-
Less
More
- Posts: 236
- Thank you received: 31
10 years 11 months ago - 10 years 11 months ago #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
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: 10 years 11 months ago by Askjerry.
Please Log in or Create an account to join the conversation.
Time to create page: 0.252 seconds