library: libGui #include "TGFrame.h" |
protected:
TGTransientFrame& operator=(const TGTransientFrame& ttf) public:
TGTransientFrame(const TGWindow* p = 0, const TGWindow* main = 0, UInt_t w = 1, UInt_t h = 1, UInt_t options = kVerticalFrame) TGTransientFrame(const TGTransientFrame& ttf) ~TGTransientFrame() virtual void CenterOnParent(Bool_t croot = kTRUE, TGTransientFrame::EPlacement pos = kCenter) static TClass* Class() const TGWindow* GetMain() const virtual TClass* IsA() const virtual void SavePrimitive(ostream& out, Option_t* option = "") virtual void SaveSource(const char* filename = "Rootdlog.C", Option_t* option = "") virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)
protected:
const TGWindow* fMain window over which to popup dialog public:
static const TGTransientFrame::EPlacement kCenter static const TGTransientFrame::EPlacement kLeft static const TGTransientFrame::EPlacement kRight static const TGTransientFrame::EPlacement kTop static const TGTransientFrame::EPlacement kBottom static const TGTransientFrame::EPlacement kTopLeft static const TGTransientFrame::EPlacement kTopRight static const TGTransientFrame::EPlacement kBottomLeft static const TGTransientFrame::EPlacement kBottomRight
TGFrame, TGCompositeFrame, TGVerticalFrame, TGHorizontalFrame, TGMainFrame, TGTransientFrame and TGGroupFrame The frame classes describe the different "dressed" GUI windows. The TGFrame class is a subclasses of TGWindow, and is used as base class for some simple widgets (buttons, labels, etc.). It provides: - position & dimension fields - an 'options' attribute (see constant above) - a generic event handler - a generic layout mechanism - a generic border The TGCompositeFrame class is the base class for composite widgets (menu bars, list boxes, etc.). It provides: - a layout manager - a frame container (TList *) The TGVerticalFrame and TGHorizontalFrame are composite frame that layout their children in vertical or horizontal way. The TGMainFrame class defines top level windows that interact with the system Window Manager. The TGTransientFrame class defines transient windows that typically are used for dialogs windows. The TGGroupFrame is a composite frame with a border and a title. It is typically used to group a number of logically related widgets visually together.
Create a transient window. A transient window is typically used for dialog boxes.
Position transient frame centered relative to the parent frame. If fMain is 0 (i.e. TGTransientFrame is acting just like a TGMainFrame) and croot is true, the window will be centered on the root window, otherwise no action is taken and the default wm placement will be used.
Save the GUI tranzient frame widget in a C++ macro file.
Save a transient frame widget as a C++ statement(s) on output stream out.