Difference between revisions of "Stylesheet Property"

From Lianjapedia
Jump to: navigation, search
(Created page with '{{Common Property}} Category:Properties Category:Common Properties')
 
Line 1: Line 1:
{{Common Property}}
+
__NOTOC__
 +
Object's CSS style attributes.  Read/write.
 +
 
 +
<pre>
 +
cStylesheet = ob.Stylesheet
 +
ob.Stylesheet = cStylesheet
 +
</pre>
 +
 
 +
===cStylesheet===
 +
String of semi-colon (;) separated list of CSS style attributes.
 +
 
 +
==Example==
 +
<code lang="recital">
 +
//
 +
// Lianja custom section for page "page1" section "section1"
 +
//
 +
namespace custom1
 +
public textbox1, textbox2
 +
define class page1_section1 as section
 +
enddefine
 +
 
 +
proc page1_section1
 +
page1_section1 = createobject("page1_section1")
 +
 +
page1_section1.addobject("textbox1", "Textbox")
 +
textbox1.value = "With Stylesheet"
 +
textbox1.stylesheet = "color: rgb(127,0,63);background-color: rgb(255, 255, 241); selection-color: white; selection-background-color: rgb(191, 31, 127); border: 2px groove gray; border-radius: 10px; padding: 2px 4px;"
 +
 +
page1_section1.addobject("textbox2", "Textbox")
 +
textbox2.value = "Without Stylesheet"
 +
return page1_section1
 +
</code>
  
 
[[Category:Properties]]
 
[[Category:Properties]]
 
[[Category:Common Properties]]
 
[[Category:Common Properties]]

Revision as of 06:59, 27 September 2011

Object's CSS style attributes. Read/write.

cStylesheet = ob.Stylesheet
ob.Stylesheet = cStylesheet

cStylesheet

String of semi-colon (;) separated list of CSS style attributes.

Example

//
// Lianja custom section for page "page1" section "section1"
//
namespace custom1
public textbox1, textbox2
define class page1_section1 as section
enddefine
 
proc page1_section1 
	page1_section1 = createobject("page1_section1")
 
	page1_section1.addobject("textbox1", "Textbox")
	textbox1.value = "With Stylesheet"
	textbox1.stylesheet = "color: rgb(127,0,63);background-color: rgb(255, 255, 241); selection-color: white; selection-background-color: rgb(191, 31, 127); border: 2px groove gray; border-radius: 10px; padding: 2px 4px;"
 
	page1_section1.addobject("textbox2", "Textbox")
	textbox2.value = "Without Stylesheet"
return page1_section1