LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Frame size of chain controls

Solved!
Go to solution

Hello,

I'm looking for a way to reduce the size of the frame (like the red outline) while keeping the same font size :

 

bbel91_0-1586704177286.png


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.

0 Kudos
Message 1 of 12
(2,582 Views)

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.

0 Kudos
Message 2 of 12
(2,562 Views)

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...

0 Kudos
Message 3 of 12
(2,551 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 12
(2,545 Views)

Controls -> Classic -> String & Path -> Simple String

"If you weren't supposed to push it, it wouldn't be a button."
Message 5 of 12
(2,524 Views)

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.

0 Kudos
Message 6 of 12
(2,481 Views)
Solution
Accepted by topic author bbel91

Hi bbel,

 

use a 2DPictureIndicator to draw your text...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 12
(2,479 Views)

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…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 12
(2,441 Views)

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.

0 Kudos
Message 9 of 12
(2,436 Views)

Hi Bruno,

 

can you show your solution?

(For other forum users as a suggestion…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 12
(2,434 Views)