CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

How to create frame?

General discussion

by Soren SDF » 10 Dec 2013 13:32

Can i create a frame that will work in my mobile application?
I can find the IWCG Frame under File|New|Other but how do i make it mobile? I can choose between making it IWCGJQFrame or IWFrame class.
Shouldn't there be a IWCGJQMFrame class for this?
Same with frame type, i can pick IWCGJQRegion etc but not IWCGJQMRegion...

T.I.A.
Sören A
Soren SDF
 
Posts: 87
Joined: 19 Apr 2013 15:56

by Jorge Sousa » 10 Dec 2013 15:56

Hi Soren

Shouldn't there be a IWCGJQMFrame class for this?


Yes it should but it's a feature that can be easily done manually.

Create a Frame, drop any Region descendent (Dialog,Tabs,Region,etc) to the Frame, set Region.Name = 'IWFrameRegion' (Intraweb limiation)

and you've an IWFrame.

We've a descendant from TFrame - TIWCGFrame, that also implements the following properties WebApplication (GGWebApplicationThreadVar this can be used instead)

and OnCreate and OnDestroy (I don't know how its possibile, TFrame do have these)

But if it's TIWCGFrame cannot be dropped to a iwform at design-time, because of Delphi limitations, must be exactly TFrame, not a descendant.

If you want to be TIWCGFrame, replace class(TFrame) with class(TIWCGFrame) and add the unit, and you're done again.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Jorge Sousa » 10 Dec 2013 15:56

Hi Soren

Shouldn't there be a IWCGJQMFrame class for this?


Yes it should but it's a feature that can be easily done manually.

Create a Frame, drop any Region descendent (Dialog,Tabs,Region,etc) to the Frame, set Region.Name = 'IWFrameRegion' (Intraweb limiation)

and you've an IWFrame.

We've a descendant from TFrame - TIWCGFrame, that also implements the following properties WebApplication (GGWebApplicationThreadVar this can be used instead)

and OnCreate and OnDestroy (I don't know how its possibile, TFrame do have these)

But if it's TIWCGFrame cannot be dropped to a iwform at design-time, because of Delphi limitations, must be exactly TFrame, not a descendant.

If you want to be TIWCGFrame, replace class(TFrame) with class(TIWCGFrame) and add the unit, and you're done again.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Alexander Bulei » 10 Dec 2013 16:10

Hi Soren,

Soren SDF wrote:Can i create a frame that will work in my mobile application?
I can find the IWCG Frame under File|New|Other but how do i make it mobile? I can choose between making it IWCGJQFrame or IWFrame class.
Shouldn't there be a IWCGJQMFrame class for this?
Same with frame type, i can pick IWCGJQRegion etc but not IWCGJQMRegion...

T.I.A.
Sören A


Use this one (File|New|Other|CGDevTools) :

10-12-2013 15-06-09.png


It will create prepared frame to mobile application:

delphi code
type
TIWCGJQMAjaxPageFrame6 = class(TIWCGJQMAjaxPageFrame)
IWFrameRegion: TIWCGJQMRegion;
IWCGJQMHeader: TIWCGJQMPageHeader;
IWCGJQMFooter: TIWCGJQMPageFooter;
IWCGJQMContent: TIWCGJQMRegion;
private
{ Private declarations }
public
{ Public declarations }
end;


Best Regards.
You do not have the required permissions to view the files attached to this post.
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 Soren SDF » 12 Dec 2013 11:15

Oh, great!
Thanks again guys.

Sören
Soren SDF
 
Posts: 87
Joined: 19 Apr 2013 15:56


Return to General

cron

Who is online

Users browsing this forum: No registered users and 4 guests

Contact Us.