How to align a panel on top of Tmainmenu lazarus / 21-General ---------------------------------------------------------------------- smysm · 2021-02-06 16:28 Hi Please how to align a panel on top of mainmenu ? or how to move down the mainmenu by 60 px ? ---------------------------------------------   this is title bar ---------------------------------------------   panel 1 ---------------------------------------------  file | edit --------------------------------------------- ---------------------------------------------------------------------- MarkMLl · 2021-02-06 18:13 Assuming that you mean "above" rather than "overlaying"... I'm not sure that you can, and if you found you could one one platform (and you've not told us what you're trying to use, which is naughty) I suspect you'd find it to be non-portable since in at least some cases the menu is implemented by the operating system. The same considerations apply to the status bar at the bottom of a window. What I think you can do however is simulate a menu using a panel with appropriately-positioned text, and drop-down menus such as you'd normally associate with a right-button click. I'm pretty sure I've done this in the past, but don't have an example readily to hand. MarkMLl ---------------------------------------------------------------------- smysm · 2021-02-06 23:29 Quote from: MarkMLl on February 06, 2021, 07:13:10 pmAssuming that you mean "above" rather than "overlaying"... I'm not sure that you can, and if you found you could one one platform (and you've not told us what you're trying to use, which is naughty) I suspect you'd find it to be non-portable since in at least some cases the menu is implemented by the operating system. The same considerations apply to the status bar at the bottom of a window. What I think you can do however is simulate a menu using a panel with appropriately-positioned text, and drop-down menus such as you'd normally associate with a right-button click. I'm pretty sure I've done this in the past, but don't have an example readily to hand. MarkMLl Thank you very much yes I meant above, yes I want to avoid solutions that's not portable to other OSes If I simulate mainmenu I will loose shortcuts (and I dont want keyboard hook)   what I want is a design like ms office with circular file menu and custom drawn titlebar (panel) with buttons to gain some space for working area. I tried to move the canvas down on item_paint event but it mess the menu. I tried action list and it works: instead of main menu I will simulate menus and use TActionList  for shortcuts. Thank you very much. ---------------------------------------------------------------------- egsuh · 2021-02-07 01:26 It would not possible to position any other thing above main menu (I haven't succeeded yet). Instead try TToolBar and TCoolBar. They will look simlar to main menu. If you have ActionList already, you may hook the same action to any button of Tool/CoolBar or pop-up menu or normal button's action property. ---------------------------------------------------------------------- MarkMLl · 2021-02-07 09:06 Quote from: egsuh on February 07, 2021, 02:26:48 amIt would not possible to position any other thing above main menu (I haven't succeeded yet). Instead try TToolBar and TCoolBar. They will look simlar to main menu. Thanks for the hint, sounds useful. I suspect though that for complete flexibility there's no real alternative to one or more panels plus an actionlist, the sort of thing I've found myself needing in the past is some sort of custom separator or needing to offset one or more of the menu items at the extreme right of the window. MarkMLl ---------------------------------------------------------------------- smysm · 2021-02-07 15:27 yes TToolBar is very similar to menu thank you very much