Left Property

From Lianjapedia
Jump to: navigation, search

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