LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MenuStrip font size

Solved!
Go to solution

Does anyone knows how to change font size in the MenuStrip?

 

I want to replace standard LabVIEW runtime menu with .NET MenuStrip to have a posibility to make it bigger and more suitable for touchscreens. MSDN said that MenuStrip has a font property which "Gets or sets the font used to display text in the control" but it looks like read only property (I'm unable to change it to write)...

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 1 of 10
(6,243 Views)

Hello bienieck,

 

I checked in LabVIEW 2016 and everything seems to work fine for me. After Creating MenuStrip via Constructor Node, I place Property Node (.NET), choose property Font, right click on the property name and I can Change All To Write.Write Property

Message 2 of 10
(6,175 Views)

Instead using the menu strip, maybe you could increase the size of the font of the Labview runtime menu (not that much, because the menu has a determined height) with the key:
SystemFont="Arial Unicode MS" 30
in the application.ini

fontsmall.jpg

 

font30.jpg

 

font40.jpg

Message 3 of 10
(6,165 Views)

@Martiko wrote:

Hello bienieck,

 

I checked in LabVIEW 2016 and everything seems to work fine for me. After Creating MenuStrip via Constructor Node, I place Property Node (.NET), choose property Font, right click on the property name and I can Change All To Write.


But then, can you put in example "size" property and change it to write?

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 4 of 10
(6,139 Views)

@J-M wrote:

Instead using the menu strip, maybe you could increase the size of the font of the Labview runtime menu


I tried this but I feel like it is not very elegant and it is not customizable enough.

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 5 of 10
(6,138 Views)
Solution
Accepted by topic author bienieck
@Martiko wrote:

 

(...) I checked in LabVIEW 2016 and everything seems to work fine for me (...).


@bienieck wrote:

But then, can you put in example "size" property and change it to write?


 

Hi bieneck,

It seems to be working with "Size" exactly the same as with "Font" for me.

MenuStrip Size to Write

 

May I help you any further?

0 Kudos
Message 6 of 10
(6,132 Views)

Oh, you were right. I thought that I need to use it this way:

font size.png

And this way I can't change "size" to write.

 

It seems that I just don't know how to use it 🙂

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 7 of 10
(6,122 Views)

This works for LabVIEW 2024. Thank you.

0 Kudos
Message 8 of 10
(158 Views)

When Application Builder creates an executable, it also creates two additional files; one .ini file and one .aliases file

aaray_0-1764188624252.png

 

Edit the Application.ini file to change the menu font and font size:

 

Original menu:

aaray_5-1764189333536.png

 

Original Application.ini file:

aaray_2-1764188870650.png

 

Added one line to the .ini file:

aaray_3-1764188995238.png

 

and the menu looks like this:

aaray_4-1764189262210.png

 

 

 This works on LV2024 with menus created using the Edit --> Run-Time Menu... command

aaray_7-1764190015186.png

 

Alejandro A

0 Kudos
Message 9 of 10
(90 Views)

The menu bar on the front panel is NOT a Windows object.  There is no guarantee NI will 100% honor Windows settings.

 

Every thing on the front panel (That includes menu bar, tool bar, and scroll bars...  Except the title bar and 10-pixel edge on the left, right and bottom sides) are draw by LabVIEW.

 

George Zou
0 Kudos
Message 10 of 10
(84 Views)