CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Center the dialog even on resize browser

by jorgo » 04 Aug 2016 16:18

Hi,

how can we center the diaog in the browser window.

1.) Should be centered (horz. and vert.) at program start.
2.) Would be nice to shift it, if the browser window is resized.

Kind regards

PS
My boss is thinking about ordering a site license from your IWCGjQuery Suite.
jorgo
 
Posts: 108
Joined: 13 Jul 2016 15:57

by Alexander Bulei » 04 Aug 2016 16:35

Hi jorgo,

1.) Should be centered (horz. and vert.) at program start.


Set hte JQDialogOptions.Position to jqdopCenter (by default is jqdopCenter ).

2.) Would be nice to shift it, if the browser window is resized.


We have implemented the new property CenterOnWinResize for this purpose.

Btw, you are not our client yet, right?

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: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by jorgo » 05 Aug 2016 09:32

Hi,

1.) I can't find the new prop. CenterOnWinResize for TIWCGJQDialogEx?

2.) I'm testing the trial version since 3 weeks. Now we are on the brink to buy it.

3.) How can we center a TIWCGJQRegion in the Browser window?
There is no prop. Position for this component.
I tested:

Code: Select all
procedure TMyForm.IWAppFormCreate(Sender: TObject);
begin
   myRegion.Left := (WebApplication.FormWidth - myRegion.Width) DIV 2;
   myRegion.Top  := (WebApplication.FormHeight - myRegion.Height) DIV 2;
end;


The positon of the region is totally wrong.

Kind regards
jorgo
 
Posts: 108
Joined: 13 Jul 2016 15:57

by Alexander Bulei » 05 Aug 2016 10:00

Hi,

1.) I can't find the new prop. CenterOnWinResize for TIWCGJQDialogEx?


Of course not, because we not uploaded build yet...

2.) I'm testing the trial version since 3 weeks. Now we are on the brink to buy it.


Ok

3.) How can we center a TIWCGJQRegion in the Browser window?
There is no prop. Position for this component.


There is no such property for Regions.
You should "play" with anchors.

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: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by jorgo » 05 Aug 2016 14:53

Hi Alexander Bulei,

we registered your components today.

1.) It cost me some time to find out that you have limitations in your trial version.

- A runing service with your trial components always stops working after 15 minutes.
After registration it's now runing for over 40 minutes.

- Calculation of positions are corrupted.
e.g. 1920 - 720 = 1200 pixels. If I set myControl.Left := 600 than it was almost out of screen.
After registration the calculated position is ok (horz. centered).

2.) Center Regions over anchors doesn't work

Better, but not realy good works following:

Code: Select all
procedure TUserCheckForm.IWAppFormResize(Sender: TObject);
begin
  RGN_Base.Left := (WebApplication.FormWidth - RGN_Base.Width) DIV 2;
  RGN_Base.Top  := (WebApplication.FormHeight - RGN_Base.Height) DIV 2;
end;


Sometimes positiones are jumping ...

Kind regards
jorgo
 
Posts: 108
Joined: 13 Jul 2016 15:57

by Alexander Bulei » 05 Aug 2016 15:28

Hi jorgo,

You can't center in this way...

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: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQDialogEx

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.