Article View: borland.public.cppbuilder.nativeapi
Article #2188WindowState = wsMaximized
From: Dan
Date: Tue, 24 Apr 2007 14:08
Date: Tue, 24 Apr 2007 14:08
13 lines
1491 bytes
1491 bytes
Hi, in design mode, I like my form to be a specific size, typically the size of the most common user's screen (mine is much larger in resolution). However, when the program runs, I want the form to show up maximized and unmoveable (unless the user presses the restore window button in the upper left). I have added WindowState = wsMaximized to the OnShow() event, which does look like the form is maximized (the maximize button is disabled and the other is not) however, the form is movable. I can restore the size of the app and then click the maximize button and then the form is maximized and unmovable. How do I mimic that operation in some startup code, line OnShow?
Technical Details
Message-ID:
<462e1003$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8a1d45dff409ee34,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 24 Apr 2007 09:08:24 -0500 From: Dan <Dan@do.not.spam> User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: WindowState = wsMaximized Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 216.174.165.174 Message-ID: <462e1003$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1177423875 216.174.165.174 (24 Apr 2007 07:11:15 -0700) Lines: 13 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail