Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 7 of 7 total
Thread BUG: EDB Manager Window State (v1.00 Build 1)
Sat, Dec 16 2006 8:18 PMPermanent Link

Charalabos Michael
Hello Tim,
  EDB Manager opens in maximized stated but it doesn't
  actually maximize the window.

--
Charalabos Michael - [Creation Power] - http://www.creationpower.com -
http://www.creationpower.gr
Sun, Dec 17 2006 4:48 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< EDB Manager opens in maximized stated but it doesn't actually maximize
the window. >>

As far as I can tell this is a bug in Delphi, and unfortunately I can't find
a workaround yet.  Some have suggested on the Borland newsgroups that the
issue is with the "center" options for the form's Position property, but
we're not using any of those and the behavior is the same for all of the
Position property values.

--
Tim Young
Elevate Software
www.elevatesoft.com

Mon, Dec 18 2006 2:49 AMPermanent Link

Charalabos Michael
Hello Tim,

> As far as I can tell this is a bug in Delphi, and unfortunately I can't find
> a workaround yet.  Some have suggested on the Borland newsgroups that the
> issue is with the "center" options for the form's Position property, but
> we're not using any of those and the behavior is the same for all of the
> Position property values.

How about calling "LoadLayoutSettings" on FormShow event ?

--
Charalabos Michael - [Creation Power] - http://www.creationpower.com -
http://www.creationpower.gr
Mon, Dec 18 2006 2:13 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< How about calling "LoadLayoutSettings" on FormShow event ? >>

I tried it in FormActivate, now trying it in FormShow.....nope, same
problem.  It's definitely something very insidious.

--
Tim Young
Elevate Software
www.elevatesoft.com

Mon, Dec 18 2006 4:47 PMPermanent Link

Charalabos Michael
Hello Tim,

> I tried it in FormActivate, now trying it in FormShow.....nope, same
> problem.  It's definitely something very insidious.

I think i solved this kind of problem one before a couple years.
I'll try and let you know ...

--
Charalabos Michael - [Creation Power] - http://www.creationpower.com -
http://www.creationpower.gr
Mon, Dec 18 2006 5:20 PMPermanent Link

Charalabos Michael
Hello Tim,

>> I tried it in FormActivate, now trying it in FormShow.....nope, same
>> problem.  It's definitely something very insidious.

Found it!

procedure TMainForm.LoadLayoutSettings;
var
   TempIniFile: TMemIniFile;
   TempViewState: Integer;
begin
   TempIniFile:=TMemIniFile.Create(GetIniFileName);
   try
      with TempIniFile do
         begin
         ShowWindow(Handle, SW_SHOWDEFAULT); //ADD THIS LINE! =)
         WindowState:=TWindowState(ReadInteger(LAYOUT_SECTION,'Window
State',Ord(wsNormal)));
         if (WindowState <> wsMaximized) then

--
Charalabos Michael - [Creation Power] - http://www.creationpower.com -
http://www.creationpower.gr
Tue, Dec 19 2006 3:27 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< Found it! >>

Thanks very much.  Unfortunately there are still some bad side-effects
because the Window is initially shown smaller (flicker and resizing issues).
I'll keep working on it, though. Smiley

--
Tim Young
Elevate Software
www.elevatesoft.com

Image