Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Problem loading a TForm
Tue, Apr 11 2017 7:27 AMPermanent Link

Michael Dreher

When loading the Unit/Form in the attachment (a cut down), I get an hour glas in the 2.06 IDE and this state remains. The task manager tells me the IDE is inactive and demands lots of CPU rescources. Any idea on this?

M. Dreher



Attachments: TraceabilityPicturesForm.zip
Tue, Apr 11 2017 9:32 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< When loading the Unit/Form in the attachment (a cut down), I get an hour glas in the 2.06 IDE and this state remains. The task manager tells me the IDE is inactive and demands lots of CPU rescources. Any idea on this? >>

It's in an endless loop in the TScrollablePanel.  There's a "bounce" condition in the scroll handling somewhere in the design-time editor, so this will have to be a B2 fix.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Apr 19 2017 1:45 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

I've got a fix for this, and it will be coming out in 2.06 B2.

For now, here's the hot fix:

WebCtrls unit:

procedure TScrollBar.ValidateParams;
begin
  if (FPageSize >= 0) then   <<<<<<<<<<<  Change this to >=, not just >
     FRange:=Max(0,(FContentSize-FPageSize))
  else
     FRange:=0;
  FPosition:=Min(FPosition,FRange);
end;

The issue was caused when the FPageSize member variable was 0.

Tim Young
Elevate Software
www.elevatesoft.com
Image