🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Want to change position of standard dialogs

#13020
From: Remy Lebeau (TeamB)
Date: Wed, 29 Oct 2003 20:04
21 lines
1584 bytes
"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: <3fa01ca8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3FA01311.62845116@uni-trier.de>

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-29 12:09:49 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3FA01311.62845116@uni-trier.de>
Subject: Re: Want to change position of standard dialogs
Date: Wed, 29 Oct 2003 12:04:22 -0800
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.137.75
Message-ID: <3fa01ca8$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1067457704 67.22.137.75 (29 Oct 2003 12:01:44 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail