Default constructor.
Parameters: |
|
---|
Dismiss the expanded panel of the currently active page.
Calls and returns the value from RibbonPage.DismissExpandedPanel() for the currently active page, or False if there is no active page.
Returns the RibbonBar window style flag.
See also
SetAGWWindowStyleFlag for a list of valid window styles.
Get the index of the active page.
In the rare case of no page being active, -1 is returned.
Get a page by index.
None will be returned if the given index is out of range.
Parameters: | n – MISSING DESCRIPTION. |
---|
Perform initial layout and size calculations of the bar and its children.
This must be called after all of the bar’s children have been created (and their children created, etc.) - if it is not, then windows may not be laid out or sized correctly. Also calls RibbonPage.Realize() on each child page.
Reimplemented from RibbonControl.
Sets the window style for RibbonBar.
Parameters: | agwStyle – can be a combination of the following bits:
|
---|
Note
Please note that some styles cannot be changed after the window creation and that Refresh() might need to be be called after changing the others for the change to take place immediately.
See comments on SetActivePageByIndex and SetActivePageByPage.
Set the active page by index, without triggering any events.
Parameters: | page – The zero-based index of the page to activate. |
---|---|
Returns: | True if the specified page is now active, False if it could not be activated (for example because the page index is invalid). |
Set the active page, without triggering any events.
Parameters: | page – The page to activate. |
---|---|
Returns: | True if the specified page is now active, False if it could not be activated (for example because the given page is not a child of the ribbon bar). |
Set the art provider to be used be the ribbon bar.
Also sets the art provider on all current RibbonPage children, and any RibbonPage children added in the future.
Note that unlike most other ribbon controls, the ribbon bar creates a default art provider when initialised, so an explicit call to SetArtProvider is not required if the default art provider is sufficient. Also unlike other ribbon controls, the ribbon bar takes ownership of the given pointer, and will delete it when the art provider is changed or the bar is destroyed.
If this behaviour is not desired, then clone the art provider before setting it.
Reimplemented from RibbonControl.
Parameters: | art – MISSING DESCRIPTION. |
---|
Set the margin widths (in pixels) on the left and right sides of the tab bar region of the ribbon bar.
These margins will be painted with the tab background, but tabs and scroll buttons will never be painted in the margins. The left margin could be used for rendering something equivalent to the “Office Button”, though this is not currently implemented. The right margin could be used for rendering a help button, and/or MDI buttons, but again, this is not currently implemented.
Parameters: |
|
---|