🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11702

Re: Form position

#11702
From: john blackburn
Date: Mon, 19 Jan 2004 17:59
16 lines
1162 bytes
Zannha wrote:

> Hi,
> 
> I check if resolution is 1024x768, if it is, I need the form to "snap" to
> the top of the screen, how can I do this?
> 

Just set the following Top and Left properties to the values you want in the
"On Show" event e.g. :-

Form->Top = 0;
Form->Left = 0;


John
Technical Details
Message-ID: <400c1b06@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <400c0ff7$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,b7cd46e99cc6273c
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-19 10:10:33 PST
Message-ID: <400c1b06@newsgroups.borland.com>
From: john blackburn <john.blackburn@lintonhealy.co.uk>
Subject: Re: Form position
Newsgroups: borland.public.cppbuilder.nativeapi
Date: Mon, 19 Jan 2004 17:59:32 +0000
References: <400c0ff7$1@newsgroups.borland.com>
Lines: 16
User-Agent: KNode/0.7.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
NNTP-Posting-Host: 82.68.81.230
X-Trace: newsgroups.borland.com 1074535178 82.68.81.230 (19 Jan 2004 09:59:38 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail