Disabledbackcolor Property
From Lianjapedia
Revision as of 06:28, 26 September 2011 by Lianjasupport (Talk | contribs)
An object's background color when disabled. Read/write.
nDisabledBackColor = ob.disabledbackcolor ob.disabledbackcolor = nColor | cColor
nDisabledBackColor
Disabledbackcolor is returned as a decimal number.
nColor
Decimal number:
ob.disabledbackcolor = 16711935
Or decimal using the rgb() function:
ob.disabledbackcolor = rgb(255,0,255)
Hexadecimal number:
ob.disabledbackcolor = 0xFF00FF
cColor
Color constant:
ob.disabledbackcolor = "magenta"
HTML style six-digit hexadecimal number for red, green, blue components:
ob.disabledbackcolor = "#FF00FF"
Example
// // Lianja custom section for page "page1" section "section1" // namespace custom public textbox1 define class page1_section1 as section enddefine define class color_button as CommandButton proc click textbox1.disabledbackcolor = "green" messagebox(etos(int(textbox1.disabledbackcolor)),0,"Disabledbackcolor") endproc enddefine proc page1_section1 page1_section1 = createobject("page1_section1") page1_section1.addobject("colorbutton","color_button") colorbutton.caption = "Go Green!" page1_section1.addobject("textbox1", "Textbox") textbox1.value = "Textbox 1" textbox1.enabled = .F. return page1_section1