BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to put a MainMenu somewhere else as the Form??

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ObjectPascal
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Thu Feb 01, 2007 6:23 am    Post subject: How to put a MainMenu somewhere else as the Form?? Reply with quote



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!!
Back to top
Guest






PostPosted: Wed Feb 28, 2007 4:19 pm    Post subject: Re: How to put a MainMenu somewhere else as the Form?? Reply with quote



IIRC you can use a frame as the container of the menu to achieve the
effect you want.

HTH,
Uli.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ObjectPascal All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.