CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

TArcIWDlgPopupRegion replacement

Suggest new components/features

by Kevin Kelly » 28 Jan 2014 16:24

Have you thought about offering a similar component?

I used to use it a lot because it "grayed out" the underlying window and was very customizable.

CGMessageDlg is OK, but it's not the same thing.

Thanks for the great product and the great support - Kevin
Kevin Kelly
 
Posts: 45
Joined: 27 Jan 2013 19:45

by Jorge Sousa » 28 Jan 2014 18:04

Hi Kevin

Thank you, is a good suggestion.

Meanwhile, if you code something like:

Code: Select all
var
  js: string;
begin
  js:= '$(".ui-widget-overlay").css("background", "color");';
  CGAddJavaScriptToAjaxResponse(js);
end;



into a dialog OnOpen

you can setup any css property to the overlay.

btw: We cannot answer you by email... :/ always rejected
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Kevin Kelly » 29 Jan 2014 01:47

Thanks for the work around. I'll give it a try.

Yeah - the email. I'd change it myself but I can't get into my CgDev profile and the temp password emails are bouncing.

Use this address in the future: repo dot pilot at gmail dot com.

Cheers - Kev
Kevin Kelly
 
Posts: 45
Joined: 27 Jan 2013 19:45

by Kevin Kelly » 04 Apr 2014 19:39

I know you are working on many cool new components, which are greatly appreciated.

But is this one still on the list?

I'm about ready to dive into the Arcana code again. I was able to port it over to IW11 and XE2 but the IW world has changed a bunch since then :lol:

Thanks for the great support - Kev
Kevin Kelly
 
Posts: 45
Joined: 27 Jan 2013 19:45

by Jorge Sousa » 04 Apr 2014 20:23

Hi Kevin

I was able to port it over to IW11 and XE2 but the IW world has changed a bunch since then


You bet, well,

We could easily add a component like this, but is there any difference between a PopupRegion and a dialog without caption and not draggrable or resizable?
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Kevin Kelly » 06 Apr 2014 19:24

The PopUpRegion's effect of "50% grayed out opacity" of the entire underlying screen is what I was trying to accomplish.

While our use of the PopUpRegion was generally reserved for fatal user errors - like an incorrect login - it was a nice effect.

Or, If you could easily add those visual properties to an existing CG dialog that would be cool.

Or, I could go back into the existing Arcana code and figure out what IW unit(s) everything moved to. That thought is already giving me a headache - hahahahaha.

Cheers - Kev
Kevin Kelly
 
Posts: 45
Joined: 27 Jan 2013 19:45

by Alexander Bulei » 07 Apr 2014 09:58

Hi Kevin,

You can customize the overlay with css.
To better management, i suggest you to use the css classes, and apply to overlay on "OnOpen" event of dialog.

Here you have the simple example:

css code
.my-error-overlay{
background: red;
}

.my-success-overlay{
background: green;
}


As you know, the event has two features:

  • Property "Script" - execute the javascript on browser/client side
  • OnEvent - call the function on server.

So, If your dialog does nothing on "OnOpen" event, as this is done in the client browser, you can use the script property to prevent the unnecessary call to the server:

delphi code
IWCGJQDialog1.JQDialogOptions.OnOpen.Script:= 'function (event, ui){ $(".ui-widget-overlay").addClass("my-error-overlay"); }'; // my-success-overlay


If you have already some code in this event, you have to do as my colleague said :

delphi code
var
js: string;
begin
js:= '$(".ui-widget-overlay").addClass("my-error-overlay");';
CGAddJavaScriptToAjaxResponse(js);
end;


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 Suggestions

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.