Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Maximize/restore in Delphi Berlin 10.1


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 4 - Last Post: May 17, 2017 3:53 AM Last Post By: Martin Fuller
Randall Carpenter

Posts: 26
Registered: 1/5/09
Maximize/restore in Delphi Berlin 10.1  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 26, 2017 7:07 AM
I have recently upgraded from Delphi XE5 to Delphi Berlin 10.1.

I have a project which was developed in Delphi XE5.

After compiling the project in Berlin, I'm experiencing a strange problem I have not been able to solve.

The Mainform opens with WindowState = wsNormal. When I maximize the window, the bottom part of the window, which contains buttons I need to access, is behind the windows taskbar and therefore the buttons are not in view/accessable . When compiled in Delphi XE5, maximizing the window only resizes the window to the top of the taskbar.

Here's the frustrating part. If I create a NEW project in Berlin, the mainform behaves as expected. What is making the form created in Delphi XE5 behave differently in Berlin?

Is there some new property I need to set in Berlin which will prevent this behavior?

Your help will be greatly appreciated.

Randall H. Carpenter
Peter Below

Posts: 1,225
Registered: 12/16/99
Re: Maximize/restore in Delphi Berlin 10.1  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 26, 2017 10:24 AM   in response to: Randall Carpenter in response to: Randall Carpenter
Randall Carpenter wrote:

I have recently upgraded from Delphi XE5 to Delphi Berlin 10.1.

I have a project which was developed in Delphi XE5.

After compiling the project in Berlin, I'm experiencing a strange
problem I have not been able to solve.

The Mainform opens with WindowState = wsNormal. When I maximize the
window, the bottom part of the window, which contains buttons I need
to access, is behind the windows taskbar and therefore the buttons
are not in view/accessable . When compiled in Delphi XE5, maximizing
the window only resizes the window to the top of the taskbar.

Here's the frustrating part. If I create a NEW project in Berlin,
the mainform behaves as expected. What is making the form created in
Delphi XE5 behave differently in Berlin?

Is there some new property I need to set in Berlin which will prevent
this behavior?

Your help will be greatly appreciated.

What is the Borderstyle of the afflicted form?


--
Peter Below
TeamB

Randall Carpenter

Posts: 26
Registered: 1/5/09
Re: Maximize/restore in Delphi Berlin 10.1  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 26, 2017 10:57 AM   in response to: Peter Below in response to: Peter Below
Peter Below wrote:
Randall Carpenter wrote:

I have recently upgraded from Delphi XE5 to Delphi Berlin 10.1.

I have a project which was developed in Delphi XE5.

After compiling the project in Berlin, I'm experiencing a strange
problem I have not been able to solve.

The Mainform opens with WindowState = wsNormal. When I maximize the
window, the bottom part of the window, which contains buttons I need
to access, is behind the windows taskbar and therefore the buttons
are not in view/accessable . When compiled in Delphi XE5, maximizing
the window only resizes the window to the top of the taskbar.

Here's the frustrating part. If I create a NEW project in Berlin,
the mainform behaves as expected. What is making the form created in
Delphi XE5 behave differently in Berlin?

Is there some new property I need to set in Berlin which will prevent
this behavior?

Your help will be greatly appreciated.

What is the Borderstyle of the afflicted form?


--
Peter Below
TeamB

BorderStyle is bsSizeable.

Randall

Peter Below

Posts: 1,225
Registered: 12/16/99
Re: Maximize/restore in Delphi Berlin 10.1  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 26, 2017 11:17 PM   in response to: Randall Carpenter in response to: Randall Carpenter
Randall Carpenter wrote:

Peter Below wrote:
Randall Carpenter wrote:

I have recently upgraded from Delphi XE5 to Delphi Berlin 10.1.

I have a project which was developed in Delphi XE5.

After compiling the project in Berlin, I'm experiencing a strange
problem I have not been able to solve.

The Mainform opens with WindowState = wsNormal. When I maximize
the window, the bottom part of the window, which contains buttons
I need to access, is behind the windows taskbar and therefore the
buttons are not in view/accessable . When compiled in Delphi
XE5, maximizing the window only resizes the window to the top of
the taskbar.

Here's the frustrating part. If I create a NEW project in Berlin,
the mainform behaves as expected. What is making the form
created in Delphi XE5 behave differently in Berlin?

Is there some new property I need to set in Berlin which will
prevent this behavior?

Your help will be greatly appreciated.

What is the Borderstyle of the afflicted form?


--
Peter Below
TeamB

BorderStyle is bsSizeable.


Mh, then I suggest you take a look at the form's Constraints property
or check whether it has a handler for the wm_GETMINMAXINFO message. I
cannot think of something else that may cause the symptoms you
describe, sorry.

--
Peter Below
TeamB
Martin Fuller

Posts: 1
Registered: 5/21/15
Re: Maximize/restore in Delphi Berlin 10.1  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 17, 2017 3:53 AM   in response to: Randall Carpenter in response to: Randall Carpenter
Randall Carpenter wrote:
I have recently upgraded from Delphi XE5 to Delphi Berlin 10.1.

I have a project which was developed in Delphi XE5.

After compiling the project in Berlin, I'm experiencing a strange problem I have not been able to solve.

The Mainform opens with WindowState = wsNormal. When I maximize the window, the bottom part of the window, which contains buttons I need to access, is behind the windows taskbar and therefore the buttons are not in view/accessable . When compiled in Delphi XE5, maximizing the window only resizes the window to the top of the taskbar.

Here's the frustrating part. If I create a NEW project in Berlin, the mainform behaves as expected. What is making the form created in Delphi XE5 behave differently in Berlin?

Is there some new property I need to set in Berlin which will prevent this behavior?

Your help will be greatly appreciated.

Randall H. Carpenter

We fixed this by choosing "Enable Runtime Themes" in Project Options \ Application \ Manifest File, for all configurations.

PS Is it a bug that maximise behaves incorrectly without this option? Reproducible steps: create a new VCL Forms Application, add a status bar to the bottom of the form, disable "Enable Runtime Themes", choose a Custom Style e.g. Aqua Light Slate.

Martin
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02