CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

What is needed to invoke a dialog from a button?

General discussion

by sirn@sdfab.se » 13 Sep 2012 21:30

I've had a look at the Mobile demo and I would like to open a custom dialog by clicking button just as with the Purchase Album button in the JQMProducts form. I can't really get it to work though.
I would also like to be able to open a custom dialog from the page header buttons.
Any pointers?

T.I.A.
Sören Alexandersson
sirn@sdfab.se
 
Posts: 2
Joined: 20 Jul 2012 03:29

by Jorge Sousa » 14 Sep 2012 10:46

Hi Sören

I'm not sure exactly what's your biggest diffiiculty,

But as you can see in Demo - JQMProducts.pas

All you have to do is drop a TIIWCGJQMRegion to the IWForm, let's call it JQMCustomDialog

set JQMCustomDialog.RegionType:= jqmrtPage

and set button JQMLinkingOptions, in both cases, a single button or a page header button

JQMBtnPurchase.JQMLinkingOptions.RelType:= jqmrtDialog;
JQMBtnPurchase.JQMLinkingOptions.LoadAjaxPage:= JQMCustomDialog; // TIIWCGJQMRegion

We sent you a specific demo by mail

Best Regards

cgdevtools
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to General

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.