Page 1 of 1

Center the dialog even on resize browser

PostPosted: 04 Aug 2016 16:18
by jorgo
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.

Re: Center the dialog even on resize browser

PostPosted: 04 Aug 2016 16:35
by Alexander Bulei
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.

Re: Center the dialog even on resize browser

PostPosted: 05 Aug 2016 09:32
by jorgo
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

Re: Center the dialog even on resize browser

PostPosted: 05 Aug 2016 10:00
by Alexander Bulei
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.

Re: Center the dialog even on resize browser

PostPosted: 05 Aug 2016 14:53
by jorgo
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

Re: Center the dialog even on resize browser

PostPosted: 05 Aug 2016 15:28
by Alexander Bulei
Hi jorgo,

You can't center in this way...

Best Regards.