Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to put a MainMenu somewhere else, and not only on the Form??

0 views
Skip to first unread message

tommy...@gmail.com

unread,
Feb 2, 2007, 3:43:44 PM2/2/07
to
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!!

Yorai Aminov (TeamB)

unread,
Feb 5, 2007, 4:40:35 PM2/5/07
to
On 02/02/2007 22:43:44, tommy...@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

0 new messages