htmlInputImage
Image input control class
[Previous] [Main] [Next]


Description
htmlInputImage encapsulates the <INPUT TYPE="IMAGE"></INPUT> tags. This class is used to place an image, serving as a custom button, on a form (clickable image button). When a user clicks the image element on a browser, the button behaves like a regular submit button, sending the form contents to the server.  
 
Declaration
#include <dcmicro/htmlpp/inputimg.h>  
 
Hierarchy
htmlinputimage.gif  
 
See Also
htmlForm, htmlInputSubmit  
 
Related Constants/Definitions
typedef enum {  
   align_default = 0,  
   align_left,  
   align_center,  
   align_right,  
   align_justify  
} Alignment ;  
 
Constructors
htmlInputImage()  
Constructs an empty object.  
 
htmlInputImage( const String& name,  
    const String& image_url,  
    Alignment align = align_default )  
Constructs an image input object name, referencing the image located at image_url, aligned using align.  
 
Destructor
virtual ~htmlInputImage()  
Destroys the object.  
 
Member Methods
NamehtmlInputImage& Name(const String& name )  
Sets the control name to name, and returns a reference to the object.  
 
NameString Name() const  
Returns the control name as a string.  
 
URL   htmlInputImage& URL(const String& image_url )  
Sets the image source to image_url, and returns a reference to the object.  
 
URL   String URL() const  
Returns the image source URL as a string.  
 
Align   htmlInputImage& Align( Alignment align )  
Sets the alignment to align and returns a reference to the object.  
 
Align   int Align() const  
Returns the alignment for the control, or align_default if not set.  
 
ClonehtmlObject FAR * Clone() const  
Returns a base-class pointer to a deep copy of the object.  
 
Example
 
See the example in Tutorial:Forms:Buttons:Clickable Image Buttons  
 



©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.