Nevron Forum

Want to adjust height of nMenuBar

https://www.nevron.com/Forum/Topic3059.aspx

By JSW W. - Thursday, February 11, 2010

1) I want reduce the height of Menubar. What would be the property to do this?

2) Also I want to press F9 to hide/show Menubar -- are there property available or some snipet?

Thanks,
By Angel Chorbadzhiev - Friday, February 12, 2010

Hello JSW W.,

To reduce the height of the NMenuBar you need to set the Height of the CommandSize property.

Please, note that you can do that only if you don't have special commands like minimize, maximize, close that comes from the maximized NUIDocument. The size of these special commands was taken from SystemInformation.SmallIconSize.

To hide and show NMenuBar all you need is to call respectively Hide and Show methods.

Regards,

Angel.

By JSW W. - Monday, February 15, 2010

Hide/Show did the job for keyboard action.
However, I am still puzzle with the menubar height adjustment. Play around and only thing that affect is maximumsize but it disfigured the bar.
By Angel Chorbadzhiev - Monday, February 15, 2010

Hello JSW W.,

To reduce the height of the NMenuBar you need to set the Height of the CommandSize property.

Please, note that you can do that only if you don't have special commands like minimize, maximize, close that comes from the maximized NUIDocument. The size of these special commands was taken from SystemInformation.SmallIconSize.

Regards,

Angel.