IntraWeb(38)-TIWAppForm、TIWForm、TIWBAseHTML Form、TIWBAseFormの使用

5445 ワード

フォームTIWAppFormのユニットおよび継承チェーン:
IWAppForm.TIWAppForm < TIWForm < TIWBaseHTMLForm < TIWBaseForm < TIWModuleDsn < TIWContainer < TIWBaseContainer < TScrollingWinControl < TWinControl < TControl < TComponent < TPersistent < TObject
主要メンバー:

property OnURLRequest: TOnURLRequest //      DoURLRequest   

procedure DoURLRequest(aRequest: THttpRequest) //   OnURLRequest   ;  : DoURLRequest(WebApplication.Request);
function MessageForm: TIWMessageFormClass  //           ;       ,                
class procedure SetAsMainForm              //      ;     initialization  
class procedure SetURL(const aPath: string; const aDocument: string) //      
class function RequestAuth(aRequest: THttpRequest; var rGroup: string): Boolean	//    ;      ,             
TIWFormのユニットおよび継承チェーン:
IWForm.TIWForm < TIWBaseHTMLForm < TIWBaseForm < TIWModuleDsn < TIWContainer < TIWBaseContainer < TScrollingWinControl < TWinControl < TControl < TComponent < TPersistent < TObject
{TIWForm=class(TIWBAseHTML Form,IIIWHTML 40 Container,IIIWHTML 40 Form)/2つのインタフェース}の主要メンバーを同時に実装します.

property ActiveControl: TIWCustomControl //        
property Background: TIWBackground	 //      
property LayoutMgr: TIWContainerLayout   //       
property HandleTabs: Boolean //    
property LeftToRight: Boolean		 //    
property LockUntilLoaded: Boolean	 //            ,    True
property LockOnSubmit: Boolean		 //        ,    True
property StyleSheet: TIWFileReference	 //     CSS   ;      wwwroot  (   )
property ShowHint //
property ServerOnResize: Boolean         //    ; only write
property ProgressIndicator: TIWProgressIndicator //       
property Theme: string    //    
property XPTheme: Boolean //
property JavaScript: TStringList //js   
property DocType: string    //     ;        :   
property KeepAlive: Boolean //    ,     Session    ;               ,     ,     SessionTimeout       ;    False;

property OnDefaultAction: TNotifyEvent //    ;     TIWEdit      ,         OnSubmit   ,        
property OnResize; //  ServerOnResize         ,       

constructor Create(aOwner: TComponent); override;
procedure AddToInitProc(const ACode: string); //         js   
procedure DoDefaultAction; //     OnDefaultAction

procedure SetIWAJAXNotifier(aIWAJAXNotifier: TIWBaseHTML40Component); //TIWAJAXNotifier           SendAJAXNotification,             TIWAJAXNotifier      .
function SendAJAXNotification: Boolean;       //
function GetIWAJAXNotificationJSCode: string; //
function GetIsStrictMode: Boolean; //         IE     
class function FindParentForm(Control: TControl): TIWForm;
property PageContext: TIWPageContext40;        //             ; only read
property ContainerContext: TIWContainerContext //             
property JavaScriptOnce: string //       js   
property CacheFiles: TStrings   //      ; only read
TIWBAseHTML Formのユニットおよび継承チェーン:
IWBaseHTMLForm.TIWBaseHTMLForm < TIWBaseForm < TIWModuleDsn < TIWContainer < TIWBaseContainer < TScrollingWinControl < TWinControl < TControl < TComponent < TPersistent < TObject
主要メンバー:

property BGColor: TIWColor    //           
property LinkColor: TIWColor  //           
property TextColor: TIWColor  //         
property VLinkColor: TIWColor //       
TIWBAseFormのユニットおよび継承チェーン:
IWBaseForm.TIWBaseForm < TIWModuleDsn < TIWContainer < TIWBaseContainer < TScrollingWinControl < TWinControl < TControl < TComponent < TPersistent < TObject
主要メンバー:

property FormAction: string  //   Html Form   action   
property Params: TStringList //    ,      WebApplication.Request.ContentFields,      ; only read
property Released: Boolean              //      Release,          Free  ,          ; only read
property WebApplication: TIWApplication //only read
property FormState: TIWFormState        //    : fsUndefined, fsRendering, fsExecuting, fsCreating, fsCreated; only read
property ExecCount: Cardinal            //      ; only read
property AllowPageAccess: Boolean //      
property ConnectionMode: TIWConnectionMode //      : cmAny, cmSecure, cmNonSecure
property PreHeader: TStringList	    //    Head      
property ExtraHeader: TStringList   //    Head      
property ContentFiles: TStringList  //   js、css 
property HiddenFields: TStringList  //    
property Title: string		    //    
property PreventBackButton: Boolean //        ;    False

property OnAfterRender: TNotifyEvent //   ,     OnCreate > OnRender   
property OnCreate: TNotifyEvent
property OnDestroy: TNotifyEvent

procedure Hide //
procedure Show //
procedure Release //  ;           WebApplicaiton      (FReleasedForms) ,    Hide  ;     ActiveForm      Free
procedure ReleaseAndRedirect(const aUrl: string) //     
class function TextToHTMLStringLiteral(const AText: string): string; //  Html          ,         
例:

//  ...