80 Warning(
"Create",
"separators not yet supported");
84 Warning(
"Create",
"picture buttons not yet supported");
91 b->SetUserData(button);
175 while ((obj=next())) {
176 if (!obj->
InheritsFrom(TGTextButton::Class()))
continue;
192 while ((obj=next())) {
193 if (!obj->
InheritsFrom(TGTextButton::Class()))
continue;
214 Error(
"SetButtonState",
"not valid button state (expecting 0, 1, 2 or 3)");
231 gClient->GetColorByName(colorName, color);
239 while ((obj=next())) {
240 if (!obj->
InheritsFrom(TGTextButton::Class()))
continue;
ULong_t Pixel_t
Pixel value.
include TDocParser_001 C image html pict1_TDocParser_001 png width
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
ABC describing GUI independent control bar.
TControlBar * fControlBar
TControlBarButton * fClicked
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
TList * GetListOfButtons() const
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual UInt_t GetDefaultWidth() const
virtual void ChangeOptions(UInt_t options)
Change composite frame options. Options is an OR of the EFrameTypes.
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
virtual void MapRaised()
map raised
virtual void DeleteWindow()
Delete window.
virtual UInt_t GetOptions() const
virtual void Move(Int_t x, Int_t y)
Move frame.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void UnmapWindow()
unmap window
void SetIconName(const char *name)
Set window icon name. This is typically done via the window manager.
void SetWMSize(UInt_t w, UInt_t h)
Give the window manager a window size hint.
void SetWMPosition(Int_t x, Int_t y)
Give the window manager a window position hint.
void SetMWMHints(UInt_t value, UInt_t funcs, UInt_t input)
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
virtual void Add(TObject *obj)
virtual const char * GetTitle() const
Returns title of object.
virtual const char * GetName() const
Returns name of object.
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual const char * GetTitle() const
Returns title of object.
void ReallyDelete()
Really delete the control bar and the this GUI.
void Hide()
Hide controlbar.
virtual ~TRootControlBar()
Delete the control bar implementation.
void SetTextColor(const char *colorName)
sets text color for control bar buttons, e.g.: root > .x tutorials/demos.C root > bar->SetTextColor("...
Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Handle controlbar button messages.
void Show()
Show controlbar. If not yet created create it first.
void Create()
Create the control bar.
void SetButtonWidth(UInt_t width)
Set button width in pixels.
void SetFont(const char *fontName)
sets new font for control bar buttons
TRootControlBar(TControlBar *c=nullptr, const char *title="ROOT Control Bar", Int_t x=-999, Int_t y=-999)
Create a ROOT native GUI controlbar.
void CloseWindow()
Called when closed via window manager action.
void SetButtonState(const char *label, Int_t state=0)
sets new font for control bar buttons