Difference between revisions of "Left Property"

From Lianjapedia
Jump to: navigation, search
(Created page with '__NOTOC__ The left column position of the object in pixels. Read/write. <pre> nLeft = ob.left ob.left = nLeft </pre> ===nLeft=== Numeric signifying the left column position. …')
 
Line 16: Line 16:
 
//
 
//
 
namespace custom1
 
namespace custom1
public textbox1
+
public container1, textbox1
 
define class page1_section1 as section
 
define class page1_section1 as section
 
enddefine
 
enddefine
 +
  
 
define class position_button as CommandButton
 
define class position_button as CommandButton
Line 29: Line 30:
 
proc page1_section1  
 
proc page1_section1  
 
page1_section1 = createobject("page1_section1")
 
page1_section1 = createobject("page1_section1")
 +
page1_section1.addobject("container1","container")
 
 
page1_section1.addobject("positionbutton","position_button")
+
container1.addobject("textbox1", "Textbox")
positionbutton.caption = "Reposition"
+
+
page1_section1.addobject("textbox1", "Textbox")
+
 
textbox1.value = "Textbox 1"
 
textbox1.value = "Textbox 1"
 +
textbox1.left = 1
 +
textbox1.top = 1
 +
textbox1.height = 20
 +
textbox1.width = 100
 +
 +
container1.addobject("positionbutton","position_button")
 +
positionbutton.caption = "Reposition"
 +
positionbutton.top = 200
 +
positionbutton.left = 200
 
return page1_section1
 
return page1_section1
 
</code>
 
</code>

Revision as of 08:59, 19 May 2011

The left column position of the object in pixels. Read/write.

nLeft = ob.left
ob.left = nLeft

nLeft

Numeric signifying the left column position.

Example

//
// Lianja custom section for page "page1" section "section1"
//
namespace custom1
public container1, textbox1
define class page1_section1 as section
enddefine
 
 
define class position_button as CommandButton
	proc click
		textbox1.left = textbox1.left + 10
		textbox1.top = textbox1.top + 10
	endproc
enddefine
 
proc page1_section1 
	page1_section1 = createobject("page1_section1")
	page1_section1.addobject("container1","container")
 
	container1.addobject("textbox1", "Textbox")
	textbox1.value = "Textbox 1"
	textbox1.left = 1
	textbox1.top = 1
	textbox1.height = 20
	textbox1.width = 100
 
	container1.addobject("positionbutton","position_button")
	positionbutton.caption = "Reposition"
	positionbutton.top = 200
	positionbutton.left = 200
return page1_section1