This class intercepts bar-decoration and sizing events, and draws 3D hints around fixed and flexible bars, similar to those in Microsoft DevStudio 6.x
Derived from
Include files
<wx/fl/barhintspl.h>
Data structures
Members
cbBarHintsPlugin::cbBarHintsPlugin
cbBarHintsPlugin::~cbBarHintsPlugin
cbBarHintsPlugin::CreateBoxes
cbBarHintsPlugin::DoDrawHint
cbBarHintsPlugin::Draw3DBox
cbBarHintsPlugin::DrawCloseBox
cbBarHintsPlugin::DrawCollapseBox
cbBarHintsPlugin::DrawGrooves
cbBarHintsPlugin::ExcludeHints
cbBarHintsPlugin::GetHintsLayout
cbBarHintsPlugin::HitTestHints
cbBarHintsPlugin::OnDrawBarDecorations
cbBarHintsPlugin::OnInitPlugin
cbBarHintsPlugin::OnLeftDown
cbBarHintsPlugin::OnLeftUp
cbBarHintsPlugin::OnMotion
cbBarHintsPlugin::OnSizeBarWindow
cbBarHintsPlugin::SetGrooveCount
cbBarHintsPlugin()
Default constructor.
cbBarHintsPlugin(wxFrameLayout* pLayout, int paneMask = wxALL_PANES)
Constructor, taking parent frame and pane mask flag.
~cbBarHintsPlugin()
Destructor.
void CreateBoxes()
Helper function: creates close and collapse boxes.
void DoDrawHint(wxDC& dc, wxRect& rect, int pos, int boxOfs, int grooveOfs, bool isFixed)
Helper function: draws a hint.
void Draw3DBox(wxDC& dc, const wxPoint& pos, bool pressed)
Helper function: draws a 3D box.
void DrawCloseBox(wxDC& dc, const wxPoint& pos, bool pressed)
Helper function: draws a close box.
void DrawCollapseBox(wxDC& dc, const wxPoint& pos, bool atLeft, bool disabled, bool pressed)
Helper function: draws a collapse box.
void DrawGrooves(wxDC& dc, const wxPoint& pos, int length)
Helper function: draws grooves.
void ExcludeHints(wxRect& rect, cbBarInfo& info)
Helper function.
void GetHintsLayout(wxRect& rect, cbBarInfo& info, int& boxOfs, int& grooveOfs, int& pos)
Helper function: gets the layout of a hint.
int HitTestHints(cbBarInfo& info, const wxPoint& pos)
Helper function: returns information about the hint under the given position.
void OnDrawBarDecorations(cbDrawBarDecorEvent& event)
Handles a plugin event.
void OnInitPlugin()
Called to initialize this plugin.
void OnLeftDown(cbLeftDownEvent& event)
Handles a plugin event.
void OnLeftUp(cbLeftUpEvent& event)
Handles a plugin event.
void OnMotion(cbMotionEvent& event)
Handles a plugin event.
void OnSizeBarWindow(cbSizeBarWndEvent& event)
Handles a plugin event.
void SetGrooveCount(int nGrooves)
Set the number of grooves to be shown in the pane.