Display Device State on two lines
-
- Posts: 277
- Joined: Tue Sep 01, 2009 1:47 pm
Display Device State on two lines
Currently I can only change the width of a device state field. Sometimes the text in a device state field is really long and it would be great to make it wrap around into a second line. But there is no way to adjust the height of a device state field. Any suggestions or can this be added to the feature request list.
- jay (support)
- Site Admin
- Posts: 18375
- Joined: Wed Mar 19, 2008 11:52 am
- Location: Austin, Texas
- Contact:
Re: Display Device State on two lines
This is already on the request list.Monstergerm wrote:Currently I can only change the width of a device state field. Sometimes the text in a device state field is really long and it would be great to make it wrap around into a second line. But there is no way to adjust the height of a device state field. Any suggestions or can this be added to the feature request list.
One workaround that others have used is to split the text up into multiple variables then put each variable on the control page. You can create a trigger that fires when the state changes, then you'd need a script to split the string. There might be a plugin that does that, but I'm not sure (others will chime in).
Re: Display Device State on two lines
The Matplotlib plugin has a Multiline Text device which converts text into an image for display on a control page. It has limitations, but what's there works pretty well. For example, It's possible for the text to overflow the image -- so the default image size should be large enough to hold the longest possible string.
I came here to drink milk and kick ass....and I've just finished my milk.
[My Plugins] - [My Forums]
[My Plugins] - [My Forums]