Well... if you want to go fancy there are many features you can take
advantage of...

        For example in my application when I close a form I save its coordinates
(Top,Left,Width and Height properties) into the windows registry and the
name of the operator (not windows user, application level operators) and
whenever I want to open a form, after creating it, at loading time before
showing it I go and load back the coordinates from the registry and assign
it to the form then show the form...
        This way each user in the application can reposition the forms 
according to
his choice and every time he/she opens the form, the form will be displayed
in that place...


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] Behalf
Of Warrick Wilson
Sent: Wednesday, April 27, 2005 8:07 AM
To: [email protected]
Subject: RE: [delphi-en] Dialog On Top-Right?



To add a little to this line of thought:

You might want to look into how many monitors are
connected, and determine whether you want to be at the
top-right of the entire desktop (which can extend
across multiple physical screens) or a particular
screen.

These days, multiple monitors are relatively common. I
run two screens at work (external screen connected to
my laptop), and one screen at home (just the main
laptop screen). It's surprising the number of
applications that have trouble dealing with this.
WinZip, in particular, remembers the location of
dialogs. Except that the dialogs end up off-screen
when I'm at home, since they get remembered as being
on the second screen at work. I've learned a lot of
Windows shortcut keys, like Move, so that I can select
an off-screen window and slide it back onto the
desktop that exists at the time.

It's a bit anal, but something to consider,
particularly if you're preparing software for a more
commercial release.

Warrick
--- Lennie De Villiers <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> Thank you! Works perfectly! :-)
>
> Kind Regards,
>
> Lennie De Villiers
>
> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Vahan Yoghoudjian
> Sent: Tuesday, April 26, 2005 3:01 PM
> To: [email protected]
> Subject: RE: [delphi-en] Dialog On Top-Right?
>
>
>       Top is always 0 in this case as for the right you
> have to set the
> Left
> property equal to:
>
> Let's say your screen resolution is 800x600 and the
> form width is 200. You
> have to set Left to 600 and Top to 0 to have it at
> top right
>
> Left := Screen.Width - myForm.Width. This function
> will give you 800 - 200 =
> 600
>
> I haven't tried it myself but I think it should
> work... give me your
> feedback please
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] Behalf
> Of Lennie De Villiers
> Sent: Tuesday, April 26, 2005 1:59 PM
> To: [email protected]
> Subject: RE: [delphi-en] Dialog On Top-Right?
>
>
>
> Hi,
>
> I know that I need to set to poDesigned but how can
> I calculate the
> top-right hand corner of the screen even if its a
> different screen
> resolution?
>
> Kind Regards,
>
> Lennie De Villiers
>
> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Vahan Yoghoudjian
> Sent: Tuesday, April 26, 2005 2:01 PM
> To: [email protected]
> Subject: RE: [delphi-en] Dialog On Top-Right?
>
>
>       Set the position to poDesigned and when you create
> the form before
> showing
> it set the top and left properties according to the
> position you want then
> show the form
>
> Vahan
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED]
> Behalf Of Lennie De Villiers
> Sent: Tuesday, April 26, 2005 12:58 PM
> To: [email protected]
> Subject: [delphi-en] Dialog On Top-Right?
>
>
>
> Hi,
>
>
>
> How can I place an applications window (a dialog)
> to the top-right hand
> corner of the screen?
>
>
>
> Using Delphi 6 EE
>
>
>
> Kind Regards,
>
>
>
> Lennie De Villiers
>
>
>
>
> --
> Internal Virus Database is out-of-date.
> Checked by AVG Anti-Virus.
> Version: 7.0.296 / Virus Database: 265.5.0 - Release
> Date: 12/9/2004
>
>
>
> [Non-text portions of this message have been
> removed]
>
>
>
>
-----------------------------------------------------
> Home page: http://groups.yahoo.com/group/delphi-en/
> To unsubscribe:
> [EMAIL PROTECTED]
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
-----------------------------------------------------
> Home page: http://groups.yahoo.com/group/delphi-en/
> To unsubscribe:
> [EMAIL PROTECTED]
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
> --
> Internal Virus Database is out-of-date.
> Checked by AVG Anti-Virus.
> Version: 7.0.296 / Virus Database: 265.5.0 - Release
> Date: 12/9/2004
>
>
> --
> Internal Virus Database is out-of-date.
> Checked by AVG Anti-Virus.
> Version: 7.0.296 / Virus Database: 265.5.0 - Release
> Date: 12/9/2004
>
>
>
>
>
-----------------------------------------------------
> Home page: http://groups.yahoo.com/group/delphi-en/
> To unsubscribe:
> [EMAIL PROTECTED]
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
-----------------------------------------------------
> Home page: http://groups.yahoo.com/group/delphi-en/
> To unsubscribe:
> [EMAIL PROTECTED]
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
> --
> Internal Virus Database is out-of-date.
> Checked by AVG Anti-Virus.
> Version: 7.0.296 / Virus Database: 265.5.0 - Release
> Date: 12/9/2004
>
>
> --
> Internal Virus Database is out-of-date.
> Checked by AVG Anti-Virus.
> Version: 7.0.296 / Virus Database: 265.5.0 - Release
> Date:
=== message truncated ===




__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/


-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links







-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to