I’m working on a gui and I’d like to know how to adjust the size of the menus of a frame in order to have them take all the horizontal space of the frame.
The problem has changed : now the menu buttons are ok when the window is in normal size but when I resize it the menu buttons drop in the middle of the window. How can I make them stick to the top of the frame ?
rgds,
Your question lacks enough detail to give you a good answer. Are you creating a menubar by putting menu buttons in a frame? If so, that’s the wrong way to do it. Create a menu widget and assign it to the menu property of the main window and you’ll end up with standard menus that behave normally.
Here’s a simple example: