htmlInputPassword
Password input control class
[Previous] [Main] [Next]


Description
htmlInputPassword encapsulates the <INPUT TYPE="PASSWORD"></INPUT> tags. Password input fields are similar to regular text input fields, but the browser displays placeholder characters instead of the actual text entered. Note that user-entered characters are not encrypted -- they simply are not displayed.  
 
Declaration
#include <dcmicro/htmlpp/password.h>  
 
Hierarchy
htmlinputpassword.gif  
 
See Also
htmlForm  
 
Related Constants/Definitions
None.  
 
Constructors
htmlInputPassword()  
Constructs an empty object.  
 
htmlInputPassword(const String& name,  
      const String& value,  
      int display_length = 0,  
      int max_length = 0 )  
Constructs an empty object.  
 
Destructor
virtual ~htmlInputPassword()  
Destroys the object.  
 
Member Methods
Name   htmlInputPassword& Name(const String& name )  
Sets the control name to name, and returns a reference to the object.  
 
Name   String Name() const  
Returns the control name as a string.  
 
Value   htmlInputPassword& Value(const String& value )  
Sets the control value to value, and returns a reference to the object.  
 
Value   String Name() const  
Returns the control value as a string.  
 
DisplayLengthhtmlInputPassword& DisplayLength( int display_length )  
Sets the maximum number of characters to be displayed to display_length, and returns a reference to the object.  
 
DisplayLength int DisplayLength() const  
Returns the number of characters to be displayed, or zero if not set.  
 
MaxLength   htmlInputPassword& MaxLength( int max_length )  
Sets the maximum number of characters the control will accept to max_length, and returns a reference to the object.  
 
MaxLength   int MaxLength() const  
Returns the maximum number of characters the control will accept, or zero if not set.  
 
Clone   htmlObject FAR * Clone() const  
Returns a base-class pointer to a deep copy of the object.  
 
Example
 
See the example in Tutorial:Forms:Single Line Text Input  
 



©1998 DC Micro Development. All rights reserved.
No portion of this document may be c opied or reproduced without expressed written consent.
html++ is a trademark of DC Micro Development.