10-18-2012 03:20 AM
Hello,
Is there a solution to have on a Tab control, a page name which can accept multiple lines (like Cariage Return) ?
In my Tab control I have some big images & text, but the most your text is long, the most the page increases. It would be nice to minimize the size of the page (and Tab control) to have multiple lines (more edition options).
Anybody have an idea / solution ?
Best regards
Fred
10-18-2012 04:10 AM
You can't have tab page labels that contain carriage returns, any attempt to introduce one has it sanitized into a space character.
Therefore, you can't do this with traditional LabVIEW tools.
Suggestions:
10-18-2012 04:38 AM
That's a nice Tab control. Was it done using LabVIEW? If so, how?
Thanks.
10-18-2012 09:18 AM
Thanks for the quick response.
This solution works good, and I will look to introduce it in my main VI. I've added a page named 0 to have only the string indicator on a specific page.
Thanks for the answer and tips..
Best regards
Fred
10-18-2012 09:35 AM
Hello,
Yes that's a full LabVIEW Tab contol ..
You can do this by selecting : Menu-Edit-Import Picture to Clipboard (from your image directory), and then :
This way is similar to other control (for customisation). I recommand to you this page, where you can download (openiconslibrary, see link) many icons for your UI.
Other UI tips & triks are provided here.
I hope it will help, and I wish you magical Tab controls..
Best regards
Fred
10-18-2012 09:48 AM
Fred_A wrote:
- The "problem" with your first suggestion it that you loose the transparency of the image if you modify it.
You only lose transparency if you use an image editor that does not support it or save to an image format that does not support it.
You can use the free Paint.Net editor to make PNG files and import them into LabVIEW with transparency. Just make sure you use the Import menu options because copy/paste from the System clipboard into LabVIEW will lose transparency.
10-18-2012 09:51 AM
Your implementation isn't quite what I had in mind, but if it works for you then that's cool.
I meant to place the string control (borderless/transparent) in the space alongside each tab image. It would be floating above the tab, not a part of the tab, and each string would contain the text equivalent such as "Configuration", "Sequence", "Acquisition" etc. As it is a standard LabVIEW string it can contain text on more than one line:
(sorry it's not a snippet but the snippet tool seems to be losing the contained text in the string indicators?)
Brief description of code:
The only downside is the string control isn't shifted in position when the tab page is selected. Consequently it doesn't look entirely 'attached' (which of course it isn't). This can be overcome by playing with the string control position properties for each selected/deselected tab page. A bit more effort, but if you want that polished look then it would be worth it.