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!!
> 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