🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Form position

#11538
From: Tuga
Date: Tue, 03 Feb 2004 21:09
28 lines
1803 bytes
"Zannha" <lars.boldt@effekt.no> escreveu na mensagem
news:400cfbec@newsgroups.borland.com...
> Thanks to both of you. That worked.
>
> I found some code to initialize ChangeDisplaySettings()
>
> However, if I change from 800x600 to 1024x768, my application ends up
behind
> other applications, it's not ontop, this ONLY happens when I change
> resolution.
>
> I've tried executing Form1->BringToFront(), Application->BringToFront(),
> Application->NormalizeAll(), Form1->Focused() etc but nothing seems to
want
> to put my form ontop after a resolution change.
>
> Anyone have any ideas?
>
>

Hi.
Did you try that imediatly after you call the function
ChangeDisplaySettings()?
Perhaps you can do what you want if you call ChangeDisplaySettings() inside
a function that itself calls ChangeDisplaySettings() and then execute the
code for get focus.
Bye.
Technical Details
Message-ID: <40200e04$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.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> <400cfbec@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-02-03 13:10:34 PST
From: "Tuga" <nmp@ispgaya.pt>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <400c0ff7$1@newsgroups.borland.com> <400cfbec@newsgroups.borland.com>
Subject: Re: Form position
Date: Tue, 3 Feb 2004 21:09:22 -0000
Lines: 30
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: 213.22.154.242
Message-ID: <40200e04$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1075842564 213.22.154.242 (3 Feb 2004 13:09:24 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.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