Difference between revisions of "Enabled Property"

From Lianjapedia
Jump to: navigation, search
(Created page with '__NOTOC__ Whether the object is enabled. Read/write. <pre> bEnabled = ob.enabled ob.enabled = bEnabled </pre> ===bUnderline=== Boolean signifying whether the object is enabled…')
 
(bUnderline)
Line 7: Line 7:
 
</pre>
 
</pre>
  
===bUnderline===
+
===bEnabled===
 
Boolean signifying whether the object is enabled or not:
 
Boolean signifying whether the object is enabled or not:
  
Line 20: Line 20:
 
|-
 
|-
 
|}
 
|}
 
  
 
==Example==
 
==Example==

Revision as of 09:27, 11 April 2011

Whether the object is enabled. Read/write.

bEnabled = ob.enabled
ob.enabled = bEnabled

bEnabled

Boolean signifying whether the object is enabled or not:

True False
True False
.T. .F.
1 0

Example

//
// Lianja custom section for page "page1" section "section1"
//
namespace custom1
public textbox1, textbox2
define class page1_section1 as section
enddefine
 
define class enable_button as CommandButton
	proc click
		textbox1.enabled = not textbox1.enabled
		textbox2.enabled = not textbox2.enabled
	endproc
enddefine
 
proc page1_section1 
	page1_section1 = createobject("page1_section1")
 
	page1_section1.addobject("enablebutton","enable_button")
	enablebutton.caption = "Enable Toggle"	
 
	page1_section1.addobject("textbox1", "Textbox")
	textbox1.value = "Textbox 1"
 
	page1_section1.addobject("textbox2", "Textbox")
	textbox2.value = "Textbox 2"
	textbox2.enabled = False
return page1_section1