Difference between revisions of "Custom Sections and Gadgets"

From Lianjapedia
Jump to: navigation, search
Line 2: Line 2:
  
 
=See Also=
 
=See Also=
[http://www.lianja.com/resources/blog/39-coding-tips/191-developing-lianja-custom-sections-in-javascript Developing Lianja Custom Sections in JavaScript], [http://www.lianja.com/resources/blog/39-coding-tips/192-developing-lianja-custom-sections-in-php Developing Lianja Custom Sections in PHP], [http://www.lianja.com/resources/blog/39-coding-tips/193-developing-lianja-custom-sections-in-python Developing Lianja Custom Sections in Python], [[Developing Lianja Custom Sections in Visual FoxPro]]
+
[[Developing Lianja Custom Gadgets in JavaScript]], [[Developing Lianja Custom Sections in JavaScript]], [[Developing Lianja Custom Gadgets in PHP]], [[Developing Lianja Custom Sections in PHP]], [[Developing Lianja Custom Gadgets in Python]], [[Developing Lianja Custom Sections in Python]], [[Developing Lianja Custom Gadgets in Visual FoxPro]], [[Developing Lianja Custom Sections in Visual FoxPro]], [[Importing Visual FoxPro Files]]
  
 
=Custom Gadget=
 
=Custom Gadget=
Line 19: Line 19:
 
The scripting language used to write the code for this custom section: Recital | Visual FoxPro | Python | JavaScript | PHP | TypeScript.  
 
The scripting language used to write the code for this custom section: Recital | Visual FoxPro | Python | JavaScript | PHP | TypeScript.  
  
This is readonly.  The scripting language can be selected in the pulldown for the [[Custom_Delegates#Scripting_Language|Delegates: Scripting language]] attribute.
+
This is readonly.  The scripting language is selected when the section is added from the Form Tools.
 +
It can also be modified via the [[Custom_Delegates#Scripting_Language|Delegates: Scripting language]] attribute.
 +
 
 +
[[{{ns:file}}:cs_scriptinglang.png|450px|thumb|left|link={{filepath:cs_scriptinglang.png}}|Scripting language]]
 +
 
 +
 
 +
 
 +
 
 +
Here the Delegates: '''Scripting language''' has been set to JavaScript.
 +
 
 +
<br clear=all>
  
 
==Custom filename==
 
==Custom filename==
 
The file containing the custom code for this section.
 
The file containing the custom code for this section.
 +
 +
[[{{ns:file}}:cs_filename.png|450px|thumb|left|link={{filepath:cs_filename.png}}|Custom filename]]
 +
 +
 +
 +
 +
Here this Visual FoxPro Custom Section is based on the code in page1_section1.prg.
 +
 +
<br clear=all>
  
 
==Custom UI library==
 
==Custom UI library==
 
The library containing the custom UI class for this section (.scp or .vcp file).
 
The library containing the custom UI class for this section (.scp or .vcp file).
 +
 +
[[{{ns:file}}:cs_customUI_scp.png|450px|thumb|left|link={{filepath:cs_customUI_scp.png}}|Custom UI library]]
 +
 +
 +
 +
 +
Here this Visual FoxPro Custom Section is based on the myform class in main.scp.
 +
 +
Note: imported Visual FoxPro scx files generate scp files.
 +
 +
<br clear=all>
 +
 +
[[{{ns:file}}:cs_customUI_vcp.png|450px|thumb|left|link={{filepath:cs_customUI_vcp.png}}|Custom UI library]]
 +
 +
 +
 +
 +
Here this Visual FoxPro Custom Section is based on the myform class in main.vcp.
 +
 +
Note: imported Visual FoxPro vcx files generate vcp files.
 +
 +
<br clear=all>
  
 
==Custom UI class==
 
==Custom UI class==
 
The name of the custom UI class in the custom UI library for this section.
 
The name of the custom UI class in the custom UI library for this section.
 +
 +
See the screenshots [[#Custom UI library|above]] using the myform class in main.scp or main.vcp

Revision as of 08:49, 23 November 2016

Under construction

See Also

Developing Lianja Custom Gadgets in JavaScript, Developing Lianja Custom Sections in JavaScript, Developing Lianja Custom Gadgets in PHP, Developing Lianja Custom Sections in PHP, Developing Lianja Custom Gadgets in Python, Developing Lianja Custom Sections in Python, Developing Lianja Custom Gadgets in Visual FoxPro, Developing Lianja Custom Sections in Visual FoxPro, Importing Visual FoxPro Files

Custom Gadget

Scripting language

The scripting language used to write the code for this custom gadget: Recital | Visual FoxPro | Python | JavaScript | PHP.

This is readonly. The scripting language is selected when the gadget is added from the Form Tools.

Custom filename

The file containing the custom code for this gadget.

Custom Section

Scripting language

The scripting language used to write the code for this custom section: Recital | Visual FoxPro | Python | JavaScript | PHP | TypeScript.

This is readonly. The scripting language is selected when the section is added from the Form Tools. It can also be modified via the Delegates: Scripting language attribute.

Scripting language



Here the Delegates: Scripting language has been set to JavaScript.


Custom filename

The file containing the custom code for this section.

Custom filename



Here this Visual FoxPro Custom Section is based on the code in page1_section1.prg.


Custom UI library

The library containing the custom UI class for this section (.scp or .vcp file).

Custom UI library



Here this Visual FoxPro Custom Section is based on the myform class in main.scp.

Note: imported Visual FoxPro scx files generate scp files.


Custom UI library



Here this Visual FoxPro Custom Section is based on the myform class in main.vcp.

Note: imported Visual FoxPro vcx files generate vcp files.


Custom UI class

The name of the custom UI class in the custom UI library for this section.

See the screenshots above using the myform class in main.scp or main.vcp