|
htmlInputImage
Image input control class | [Previous] [Main] [Next] |
| 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.
| |
|
| |
| #include <dcmicro/htmlpp/inputimg.h>
| |
|
| |
|
| |
| htmlForm, htmlInputSubmit
| |
|
| |
| typedef enum {
| |
| align_default = 0,
| |
| align_left,
| |
| align_center,
| |
| align_right,
| |
| align_justify
| |
| } Alignment ;
| |
|
| |
| 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.
| |
|
| |
| virtual ~htmlInputImage()
| |
| Destroys the object.
| |
|
| |
| Name | htmlInputImage& 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.
| |
|
| |
| 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.
| |
|
| |
| Clone | htmlObject FAR * Clone() const
| |
| Returns a base-class pointer to a deep copy of the object.
| |
|
| |
|
| |
| See the example in Tutorial:Forms:Buttons:Clickable Image Buttons
| |
|
| |
