Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
UppHub
Status & Roadmap
FAQ
Authors & License
Forums
Funding U++
Search on this site











SourceForge.net Logo

SourceForge.net Logo

GitHub Logo

Discord Logo

ToolBar

 

class ToolBar : public BarCtrl

 

 

This class provides tool-bars.

 

 

Public Method List

 

void Set(Callback1<Bar&> bar)

This method sets the new content to the ToolBar. Content should always be provided as Bar routine - items should never be Add directly. You should call this each time status of any ToolBar button changes. ToolBar contains smart refresh logic so that only items actually changed are repainted.

 


 

void Post(Callback1<Bar&> bar)

Deprecated - do not use.

 


 

ToolBar& ButtonMinSize(Size sz)

Sets the minimal size of standard ToolBar button.

 


 

ToolBar& MaxIconSize(Size sz)

Sets the maximum size of an icon displayed in a button from the toolbar to sz.

 


 

static const Style& StyleDefault()

Returns the default style used to paint a ToolBar.

 


 

ToolBar& SetStyle(const Style& s)

Sets the visual style to ToolBar::Style s.

 


 

static int GetStdHeight()

Returns the standard height of a toolbar when used as a frame. Not that this is only valid for toolbar with normal sized icons.

 

 

ToolBar::Style

 

struct Style : public ChStyle<Style> 

This structure defines the visual style of a ToolBar.

 

 

Do you want to contribute?