RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebButton Class

TWebButton is the base class for Web items that create HTML button controls.

Pascal
TWebButton = class(TWebContainedComponent, IWebContent);
C++
class TWebButton : public TWebContainedComponent, public IWebContent;

MidItems

Use TWebButton as a base class for components that generate the HTML statements defining a specialized button control in a WebSnap or InternetExpress application. TWebButton introduces the properties and methods for  

Generating the HTML code to define the button control. 

Defining a button caption. 

Specifying tag attributes of the HTML button control, including those defined by a style sheet. 

In order to allow other Web items to use the HTML generated by the button control, TWebButton implements the IWebContent interface. 

Do not create instances of TWebButton. TWebButton relies on an abstract or, in C++ terminology, pure virtual method to generate the HTML statements defining a button control. Instead, create descendants of TWebButton that represent buttons with specific purposes. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!