Article View: borland.public.delphi.winforms.controls.using
Article #44How to put a MainMenu somewhere else, and not only on the Form??
From: 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!!
Technical Details
Message-ID:
<1170449024.592591.40150@q2g2000cwa.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!q2g2000cwa.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1eff29,18678296a041677e,start X-Google-Attributes: gid1eff29,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!q2g2000cwa.googlegroups.com!not-for-mail From: tommygrupos@gmail.com Newsgroups: borland.public.delphi.winforms.controls.using Subject: How to put a MainMenu somewhere else, and not only on the Form?? Date: 2 Feb 2007 12:43:44 -0800 Organization: http://groups.google.com Lines: 22 Message-ID: <1170449024.592591.40150@q2g2000cwa.googlegroups.com> NNTP-Posting-Host: 24.232.92.254 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1170449036 2320 127.0.0.1 (2 Feb 2007 20:43:56 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 2 Feb 2007 20:43:56 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: q2g2000cwa.googlegroups.com; posting-host=24.232.92.254; posting-account=JCz_dg0AAABlmGW20FTk0wJeZkGT2sW9