Thread View: borland.public.delphi.winforms.controls.using
2 messages
2 total messages
Started by tommygrupos
Fri, 02 Feb 2007 20:43
How to put a MainMenu somewhere else, and not only on the Form??
Author: tommygrupos
Date: Fri, 02 Feb 2007 20:43
Date: Fri, 02 Feb 2007 20:43
21 lines
1933 bytes
1933 bytes
Hi there!! I have created a simple Form which executes the following line in the Create method: SetWindowLong(Handle, GWL_STYLE, GetWindowLong(Handle, GWL_STYLE) AND NOT WS_CAPTION); So it has no border. In fact, I have then created a skin with images and different types of buttons, and even used a Region component so that Form has strange shape... Now I whant to have a Menu.. I thought that if I created the TMainMenu in the Create event of the form, setting a TPanel as its Owner, then the MainMenu would be displayed in the panel. This way, using a flat panel with some color that would camuflate the panel, it would look like a normal MainMenu only places "somewhere"... Well, it does not work and my creativity reach to its end... someone knows a solution? Thank you!!
Re: How to put a MainMenu somewhere else, and not only on the Form??
Author: Yorai Aminov (TeamB)
Date: Mon, 05 Feb 2007 21:40
Date: Mon, 05 Feb 2007 21:40
14 lines
1488 bytes
1488 bytes
On 02/02/2007 22:43:44, tommygrupos@gmail.com wrote: > if I created the TMainMenu in the Create event of the > form, setting a TPanel as its Owner, then the MainMenu would be > displayed in the panel. A menu is a special beast in Windows, and cannot be placed on other controls. You can use a menu-like control, such as TActionMainMenuBar. -- Yorai Aminov (TeamB) (TeamB cannot answer questions received via email.) Shorter Path - http://www.shorterpath.com Yorai's Page - http://www.yoraispage.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads