IHTMLInputTextElement::get_readOnlyIHTMLInputTextElement::get_readOnly*
*Contents  *Index  *Topic Contents
*Previous Topic: IHTMLInputTextElement::put_readOnly
*Next Topic: IHTMLInputTextElement::createTextRange

IHTMLInputTextElement::get_readOnly


HRESULT get_readOnly(
    VARIANT_BOOL *p 
);

Determines whether the element's contents are read-only, meaning that the user cannot enter or edit text in the control.

p
Address of a variable that receives TRUE if the element is read-only, or FALSE if not.

This is different than disabled. Read-only still allows the element to receive the focus, while disabled does not allow the element to receive the focus.

The default value for this property is FALSE.

See also put_readOnly

Up Top of Page


IHTMLInputTextElement::put_readOnly


HRESULT put_readOnly(
    VARIANT_BOOL v 
);

Specifies whether the element's contents are read-only, meaning that the user cannot enter or edit text in the control.

v
Read-only flag. TRUE sets the element to read-only; FALSE does not.

This is different than disabled. Read-only still allows the element to receive the focus, while disabled does not allow the element to receive the focus.

The default value for this property is FALSE.

See also get_readOnly


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.