[DUG] Window maximised in the slightly Claytons sense

Wayne Roser rr at kristin.school.nz
Fri Aug 19 10:11:23 NZST 2005


Thought the FormShow sounded great but, yikes, this mimicked the behaviour
of the XP-look machines on my own 98-look machine; ie I lost half my
status bar and maximised window wasn't at top of screen.

Put the 
	InsertFormNameHere.WindowState := wsMaximise;
line into a timer event that fires .1 seconds after FormShow and looks
good on my machine again. Hang on ...
... yep, looks good on the XP desktops as well.

I know I can jump through hoops, but sometimes I'd like to know why
they're there, ya know?


NZ Borland Developers Group - Delphi List <delphi at ns3.123.co.nz> on
Friday, 19 August 2005 at 9:31 +0000 wrote:
>Design the Form so that its WindowState is set to wsNormal.
>Then in the FormShow event, set the form WindowState to wsMaximised.
>
>----- Original Message ----- 
>From: "Wayne Roser" <rr at kristin.school.nz>
>Sent: Friday, August 19, 2005 9:02 AM
>
>>I have an app that I want to start off maximised so I set the main form
>> WindowState to wsMaximized at design time. (Delphi 6 pro)
>>
>> On my screen, winXP pro with all possible display options set to
>"windows
>> classic", this is fine.
>> On other machines, winXP and all possible defaults left just as they
>were
>> installed, the top of the form sits below the top of the screen and more
>> than half of the status bar on my main form sits behind that big chunky
>3D
>> start bar. If I normalize and maximize, bingo, just like a bought one,
>> just what I would've wanted at the beginning.
>>
>> Can anyone tell me what's going wrong? I put a lot of really useful
>stuff
>> (IMOhSoHO) in that status bar [bottom lip out and quivering; arms
>folded;
>> head turned away].
>



More information about the Delphi mailing list