CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

TIWCGJQFrame onResize

by Noshui » 04 Apr 2019 09:59

Hi everyone,

i wanted to ask when the onResize Funktion by the TIWCGJQFrame is triggered?


For a better understanding i have the following structure:
structure.jpg


A colleague has set the Width and Height of the Region1 (for scrollbars at Pc's with a lower resolution)
Code: Select all
procedure TfrBaseFrameLayout.IWCGJQRegion1Create(Sender: TObject);
begin
  IWCGJQRegion1.Width := WebApplication.FormWidth-270;
  IWCGJQRegion1.Height := WebApplication.FormHeight-38;
end;


Now i have the Problem, when i drag the whole Window from a lower resolution to a higher the Width and Height will be the same. Because they are not recalculated.

The easy way would be a autoresize option at the TIWCGJQRegion and TIWCGGroupBox but his option is not given. So i tryed to get a onresize-event but the onResize of TIWCGJQFrame is not triggered.

Maybe u can explain when the onresize will be triggert or u guys may have any other solution.

Thx for the Help.

Yours truly
Noshui
You do not have the required permissions to view the files attached to this post.
Noshui
 
Posts: 16
Joined: 22 Jan 2019 09:56

by Alexander Bulei » 05 Apr 2019 15:58

Hi,
Why you just not use the Align = alClient?
The system will recalculate the size automatically.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3637
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Noshui » 09 Apr 2019 09:13

Hi,

thx for the suggestion, this works if i set the Align for the Header to alTop.
If i set both to alClient there is a weird behavior.

But that dosen't matter.

Thx for the Help =)
Noshui
 
Posts: 16
Joined: 22 Jan 2019 09:56


Return to General

Who is online

Users browsing this forum: No registered users and 41 guests

Contact Us.