Want to adjust height of nMenuBar


Author
Message
JSW W.
JSW W.
Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)
Group: Forum Members
Posts: 127, Visits: 1
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,
Angel Chorbadzhiev
Angel Chorbadzhiev
Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)
Group: Forum Members
Posts: 139, Visits: 184

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.


JSW W.
JSW W.
Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)
Group: Forum Members
Posts: 127, Visits: 1
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.
Angel Chorbadzhiev
Angel Chorbadzhiev
Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)
Group: Forum Members
Posts: 139, Visits: 184

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.


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search