I'm starting my first IWCGJQuery Mobile Suite application and I have some dubts about navigation.
Using the following code (from your JQMWizard demo) on my main form :
1) is every new created frame stacked ?
2) I can't use the RelType-jqmrtBack function on the new created frame to go back to MainForm.
Is it available on frame created using the CreateNewFrame ?
How to go back to main form ?
3) In a two frame list view -> detail view "model" after updating the detail I need to refresh the list view.
Is better to avoid working with frame or is there a way to get a reference to the list view frame to call a "refresh" procedure on it ?
4) How to free a created frame ?
- Code: Select all
function TMainForm.CreateNewFrame(AFrameClass: TIWCGFrameClass): TFrame;
var
NewName: string;
LControl: TIWCGJQMRegion;
begin
NewName:= CGFindUniqueComponentName(Self, 'Frame');
FActiveFrame:= AFrameClass.Create(Self);
ActiveFrame.Name:= NewName;
ActiveFrame.Parent:= Self;
ActiveFrame.Align:= alClient;
ActiveFrame.TabOrder:= 1;
LControl:= FindIWFrameRegion(ActiveFrame);
if Assigned(LControl) then
LControl.AjaxReRender;
Result:= ActiveFrame;
end;
About a non Ajax application navigation :
1) Is the RelType-jqmrtBack on button available ?
2) Are the forms stacked and continue to exist if I don't free them explicitely ?
Can I assume to navigate like on a desktop application ? (with create and release)
Thank you,
Davide