Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread TPanel - minimize/restore
Sat, Apr 22 2017 10:59 AMPermanent Link

thomh

Hi Tim,

Could you add an OnMinimize and OnRestore event to TPanel?

Or is there another way to capture when the minimize/restore button is pressed in the caption bar?

Thanks.

// Thom
Sun, Apr 23 2017 11:03 AMPermanent Link

Uli Becker

> Or is there another way to capture when the minimize/restore button is pressed in the caption bar?

You can use the resize event like this:

   if Panel1.Height = Panel1.CaptionBar.Height +
Panel1.Border.Top.Width then
      Panel1.CaptionBar.Caption := 'Minimized'
   else
      Panel1.CaptionBar.Caption := 'Maximized';

@Tim:

There seems to be an issue with the TPanel interface:
"ApplyProperties.Border" is set to true (at least in the desktop
interface). So changes of the border values don't apply after a state
change.

Uli
Tue, Apr 25 2017 9:21 AMPermanent Link

thomh

Thanks, Uli.

I will check this out.

// Thom
Tue, Apr 25 2017 10:37 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< There seems to be an issue with the TPanel interface: "ApplyProperties.Border" is set to true (at least in the desktop interface). So changes of the border values don't apply after a state change. >>

Yeah, I'm going to have to figure out a different way to deal with the minimize transitions.

Tim Young
Elevate Software
www.elevatesoft.com
Image