|
| How to put a MainMenu somewhere else, and not only on the Form?? |
 |
2 Feb 2007 12:43:44 -0800 |
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!!
|
| Post Reply
|
| Re: How to put a MainMenu somewhere else, and not only on the Form?? |
 |
5 Feb 2007 13:40:35 -0800 |
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
|
| Post Reply
|
|
|
|
|
|
|
|
|
|