RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSetButton Class

TDataSetButton is the base class for Web items that create HTML buttons for navigating or editing data.

Pascal
TDataSetButton = class(TXMLDisplayReferenceButton, IScriptComponent);
C++
class TDataSetButton : public TXMLDisplayReferenceButton, public IScriptComponent;

Use TDataSetButton as a base class for components that generate the HTML statements defining a specialized button control for working with the data displayed by another Web item. TDataSetButton objects are used by TDataNavigator, which organizes the generated buttons.  

TDataSetButton defines properties and methods for  

Generating the HTML code to define the button control. 

Associating the button with another Web item that generates HTML for displaying the data that the button manipulates. 

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

Fitting the component into a hierarchy of Web items, each of which generates part of a larger HTML document. 

In order to allow other Web items to use the HTML generated by the button control, TDataSetButton inherits support for the IWebContent interface from TWebButton

Do not create instances of TDataSetButton. TDataSetButton relies on anabstract or, in C++ terminology, pure virtual method to generate the HTML statements defining a button control. Instead, create descendants of TDataSetButton, such as TNextButton, TPostButton, TInsertButton, and so on. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!