04-12-2020 10:11 AM
Hello,
I'm looking for a way to reduce the size of the frame (like the red outline) while keeping the same font size :
In the same way I'm also looking to maximize a text (width / height) in a frame of fixed dimensions (with the reduced borders).
Do you have a solution for me, please?
Thank you.
Solved! Go to Solution.
04-12-2020 10:39 AM
What is a "chain" control?
I don't know if you can do it by going to Advanced >> customize on the control.
One thought I have if you can't, is to paint the background and border of the control transparent. Place another image behind it that is sized to the frame and white area that you want.
04-12-2020 11:27 AM
Thanks for your reply.
The chain control is simply a string control.
I've tried to modify the control but it appears that the frame is "linked" with the font size and I can't reduce the frame as much as I want.
Your second solution is a bit complicated to automate...
04-12-2020 11:46 AM - edited 04-12-2020 11:49 AM
Hi bbel,
this is what I get for 36pt Tahoma:
How much less do you need?
(Keep in mind: a fontsize of 36pt doesn't mean it uses 36 pixels for font height in LabVIEW, while the Size:Height is given in pixels…)
I agree with message before: use a classic simple string control, paint it transparent and place a decoration behind to fake the control border…
04-12-2020 01:40 PM
Controls -> Classic -> String & Path -> Simple String
04-13-2020 06:50 AM
Thanks for your replies.
Sorry, I have to precise that I have 4 string controls one below the other and these 4 lignes have to fit in a 96 x 128 pixels frame.
The idea is perhaps to use a graphic zoom and I'll check that way.
04-13-2020 07:06 AM
04-14-2020 12:38 AM
Hi bbel,
@bbel91 wrote:
Sorry, I have to precise that I have 4 string controls one below the other and these 4 lignes have to fit in a 96 x 128 pixels frame.
One more idea:
Create 4 string indicators, using classic simple strings as mentioned before.
Paint them transparent.
Size them as needed (as small as fontsize allows).
Move them using arrow keys to fit your arbitrary frame…
04-14-2020 02:01 AM
Hi GerdW,
Yes thanks, it could also be a good solution.
But with the 2DPictureIndicator I've reached to do exactly what I wanted...and much more !
Best regards,
Bruno.
04-14-2020 02:02 AM