🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Want to change position of standard dialogs

#13025
From: Robert Schimpfle
Date: Thu, 30 Oct 2003 21:03
27 lines
1827 bytes
I used MoveWindow, but it did not work...

Anybody who has already done it?
I would appreciate a few lines of C++ code for this problem?

Robert

> 
> "Robert Schimpfle" <schi2401@uni-trier.de> wrote in message
> news:3FA01311.62845116@uni-trier.de...
> 
> > if I use the command "OpenInputFile->Show ();", the
> > dialog is placed right in the middle of my screen.
> 
> You shold not be calling Show() directly.  Use Execute() instead:
> 
>     OpenInputFile->Execute()
> 
> > Can I force C-Builder / Windows to put this dialog at
> > another place, f.i. top left or at a specified point?
> 
> The dialog is controlled by the OS itself, not the VCL.  You can try using
> the OnShow event to manualy move the underlying dialog window itself using
> MoveWindow().  TOpenDialog inherits a Handle property that is the HWND for
> the dialog.
> 
> Gambit
Technical Details
Message-ID: <3FA17CBA.B471BFE8@uni-trier.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!du-017-119.access.de.clara.NET!not-for-mail
References: <3FA01311.62845116@uni-trier.de> <3fa01ca8$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,5023092a61a6c0b9
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-30 13:02:08 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!du-017-119.access.de.clara.NET!not-for-mail
From: Robert Schimpfle <schi2401@uni-trier.de>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Want to change position of standard dialogs
Date: Thu, 30 Oct 2003 22:03:54 +0100
Lines: 27
Message-ID: <3FA17CBA.B471BFE8@uni-trier.de>
References: <3FA01311.62845116@uni-trier.de> <3fa01ca8$1@newsgroups.borland.com>
NNTP-Posting-Host: du-017-119.access.de.clara.net (212.82.246.119)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 1067547727 37932501 212.82.246.119 (16 [58479])
X-Mailer: Mozilla 4.8 [de] (X11; U; Linux 2.4.20-4GB-athlon i686)
X-Accept-Language: en