Explorar el Código

* Patch by Silvio Clecio to add TJSHTMLButtonElement and TJSHTMLElement

michael hace 6 años
padre
commit
16e88a1a38
Se han modificado 1 ficheros con 44 adiciones y 2 borrados
  1. 44 2
      packages/rtl/web.pas

+ 44 - 2
packages/rtl/web.pas

@@ -2044,7 +2044,7 @@ Type
     formMethod : string;
     formMethod : string;
     formNoValidate : Boolean;
     formNoValidate : Boolean;
     formTarget : string;
     formTarget : string;
-    height : Boolean;
+    height : string;
     indeterminate : boolean;
     indeterminate : boolean;
     inputMode : string;
     inputMode : string;
     max : string;
     max : string;
@@ -2065,7 +2065,7 @@ Type
     selectionDirection : string;
     selectionDirection : string;
     useMap : string;
     useMap : string;
     value : string;
     value : string;
-    width : NativeInt;
+    width : string;
     property files : TJSHTMLFileList Read FFiles;
     property files : TJSHTMLFileList Read FFiles;
     property form : TJSHTMLFormElement read FForm;
     property form : TJSHTMLFormElement read FForm;
     property labels : TJSNodeList read FLabels;
     property labels : TJSNodeList read FLabels;
@@ -2075,6 +2075,48 @@ Type
     property validity : TJSValidityState read FValidity;
     property validity : TJSValidityState read FValidity;
   end;
   end;
 
 
+  { TJSHTMLMenuElement }
+
+  TJSHTMLMenuElement = class external name 'HTMLMenuElement' (TJSHTMLElement) //  uhm... should it be declared? it is experimental at Mozilla docs...
+  end;
+
+  { TJSHTMLButtonElement }
+
+  TJSHTMLButtonElement = class external name 'HTMLButtonElement' (TJSHTMLElement)
+  private
+    FForm: TJSHTMLFormElement; external name 'form';
+    FLabels: TJSNodeList; external name 'labels';
+    FValidationmMessage: String; external name 'validationMessage';
+    FValidity: TJSValidityState; external name 'validity';
+    FWillValidate: boolean; external name 'willValidate';
+  Public
+    autofocus : boolean;
+    disabled : boolean;
+    formAction : String;
+    formEnctype : String;
+    formMethod : String;
+    formNoValidate : Boolean;
+    formTarget : String;
+    menu: TJSHTMLMenuElement;
+    _type : String; external name 'type';
+  Public
+    property form : TJSHTMLFormElement Read FForm;
+    property labels : TJSNodeList Read FLabels;
+    property validationMessage : String Read FValidationmMessage;
+    property validity : TJSValidityState Read FValidity;
+    property willValidate : boolean read FWillValidate;
+  end;
+
+  { TJSHTMLEmbedElement }
+
+  TJSHTMLEmbedElement = class external name 'HTMLEmbedElement' (TJSHTMLElement)
+  Public
+    height: String;
+    src: String;
+    _type : String; external name 'type';
+    width: String;
+  end;
+
   { TJSHTMLOptionElement }
   { TJSHTMLOptionElement }
 
 
   TJSHTMLOptionElement = class external name 'Option' (TJSHTMLElement)
   TJSHTMLOptionElement = class external name 'Option' (TJSHTMLElement)