ARG-Software Command Bars Library
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
What's new in the latest version
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[!] Important
[+] New
[-] Fixed error
[*] Changes
[NNNNN] Issue Id
---------------------------------------------------------------------------
Version 10.3.000 - 2024-10-03
---------------------------------------------------------------------------
General
~~~~~~~
[!][*] QR-code scanners may produce wrong result when used on a form with Command Bars.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 10.2.001 - 2021-12-19
---------------------------------------------------------------------------
General
~~~~~~~
[!][*] Some anti-viruses may block access to the library files, because they detect them (False Positive) as viruses or so.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 10.2.000 - 2021-11-11
---------------------------------------------------------------------------
General
~~~~~~~
[!][+][*] Added support for VFP Advanced 64-bit.
For more information visit: http://www.baiyujia.com/vfpadvanced/
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 10.1.017 - 2021-10-01
---------------------------------------------------------------------------
CommandBarsManager class
~~~~~~~~~~~~~~~~~~~~~~~~
[+] SetFontSize method. Sets the font size for text displayed on command bars, menus. Available at run time only.
Syntax: SetFontSize( tnFontSize)
Parameters:
tnFontSize - Specifies the size of the font in points. Value from 8 to 32, or 0 to reset it to default.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 10.1.016 - 2021-10-01
---------------------------------------------------------------------------
CommandBar's controls
~~~~~~~~~~~~~~~~~~~~~
[+] ForeColor property. Sets the foreground color used to display text of a control.
Internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 10.1.000 - 2019-04-04
---------------------------------------------------------------------------
General
~~~~~~~
[!][+] Added support for VFP Advanced (32-bit only).
For more information visit: http://www.baiyujia.com/vfpadvanced/
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 10.0.000 - 2018-03-25
---------------------------------------------------------------------------
CommandBarsManager class
~~~~~~~~~~~~~~~~~~~~~~~~
[+] SubsequentClickCount property.
Specifies whether subsequent clicks are allowed (and how many) while VFP is executing click code of other control (for example, modal form is displayed).
Default is 0; subsequent clicks not allowed.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 10.0.RC2 - 2017-12-07 (PREVIEW BUILD)
---------------------------------------------------------------------------
General
~~~~~~~
[!][-] VFP crashes when you maximize child MDI form.
Applies only to Windows 8/10 Ribbon theme.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 10.0.RC1 - 2017-11-30 (PREVIEW BUILD)
---------------------------------------------------------------------------
General
~~~~~~~
[!][+] Windows 8/10 Ribbon theme.
[!][*] Color schemes changed. Added new Windows 8/10 color scheme.
[!][*] ARGRibbonResource.dll file updated.
[!][+] DpiAware class. Useful for High-DPI. Drop it onto your form and call ScaleControls()
to rescale form size and all controls according the current DPI settings.
For example (in the Init() of your form):
ThisForm.DpiAware.ScaleControls()
[!][+] DpiAwareForm class. Useful for High-DPI. Create your forms based on this class
to automatically rescale form size and all controls according the current DPI settings.
Note: If you override Load() and/or Init() events, do not forget to call DoDefault().
... and more ...
CommandBarsManager class
~~~~~~~~~~~~~~~~~~~~~~~~
[!][*] ColorScheme property. Returns the current color scheme.
Values: 0 - Office 2007 Blue (default);
1 - Office 2007 Black;
2 - Office 2007 Aqua;
3 - Office 2007 Silver;
4 - Office 2010 Blue;
5 - Office 2010 Silver;
6 - Office 2010 Black;
7 - Windows 7 Scenic;
8 - Windows 8/10;
[!][*] SetColorScheme method. Sets the current visual theme and built-in color scheme.
Syntax: SetColorScheme( tnVisualTheme, tnColorScheme)
Parameters:
tnVisualTheme - specifies the base visual theme:
6 - Office 2007;
7 - Ribbon.
tnColorScheme - specifies the color scheme:
0 - Office 2007 Blue (default);
1 - Office 2007 Black;
2 - Office 2007 Aqua;
3 - Office 2007 Silver;
4 - Office 2010 Blue;
5 - Office 2010 Silver;
6 - Office 2010 Black;
7 - Windows 7 Scenic;
8 - Windows 8/10;
Ribbon class
~~~~~~~~~~~~
[!][*] Corrected CustomUI support.
[!][+] CustomUI. Support for "//customUI/ribbon/contextualTabs" element containing a collection of contextual tab sets "tabSet" elements.
Each "//customUI/ribbon/contextualTabs/tabSet" element contains definition of contextual tabs, "tab" elements.
[!][+] CustomUI. Support for "//customUI/contextMenus" element containing definitions of context menus.
[!][+] ContextMenus object.
Contains a collection of context menus loaded from customUI XML file or created at design/run-time.
For example, to display a context menu in your code you can use:
ThisForm.CBM.ShowPopupMenu( ThisForm.Ribbon.ContextMenus.someContextMenu1)
[!][-] RemovaAllTabs() method causes error in the RibbonTab.ReindexControls() method.
... and more ...
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 9.1.000 - 2017-02-15
---------------------------------------------------------------------------
Intermediate internal release
---------------------------------------------------------------------------
Version 9.0.000 - 2016-10-20
---------------------------------------------------------------------------
Intermediate internal release
---------------------------------------------------------------------------
Version 8.3.002 - 2016-03-19
---------------------------------------------------------------------------
General
~~~~~~~
[*] Library crashes when InkEdit ActiveX control is used on a form and that form gets released.
Actually, it is not the library bug, but InkEdit control internal bug.
So, this library update is a workaround for that InkEdit control bug.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.3.001 - 2016-02-03
---------------------------------------------------------------------------
General
~~~~~~~
[-] Library crashes with "unhandled exception in KernelBase.dll" on Windows 10 (build 10586 or higher) when user changes system theme, colors and so on.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.3.000 - 2015-03-07
---------------------------------------------------------------------------
General
~~~~~~~
[!][*] Some PNG images are not displayed.
[*] Re-worked internal functions that processes PNG images. Now the library uses GdiPlus features, instead of libpng.
Ribbon class
~~~~~~~~~~~~
[*] Control buttons (minimize, restore, close) of maximized child MDI form are not displayed even if HideMdiButtons is set to False.
RibbonTab class
~~~~~~~~~~~~~~~
[-] When Index property changes at run-time, the tab position also changes (that is correct); but object's position in the Ribbon.Tabs collection doesn't change.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.2.003 - 2011-09-16
---------------------------------------------------------------------------
DialogBar class
~~~~~~~~~~~~~~~
[!][-] Version 8.2.002 generates "API call caused an exception" error. DialogBar doesn't display its child form.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.2.002 - 2011-09-14
---------------------------------------------------------------------------
General
~~~~~~~
CommandBar class
~~~~~~~~~~~~~~~~
[+] DelayRedraw method. Call this method to redraw command bar.
May be useful to force commandbar redrawing after you made changes to its controls.
For example:
ThisForm.Ribbon.LockRedraw = .T.
... change the commandbar/ribbon controls' properties here: change picture and so on...
ThisForm.Ribbon.DelayRedraw()
ThisForm.Ribbon.LockRedraw = .F.
[-] Tooltips of some controls displayed too wide, trailing spaces not trimmed.
Ribbon.QuickAccessToolbar object
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[-] Controls do not refresh according evaluated value of the SkipFor and MarkFor properties.
[+] RemoveAddedControls method. Removes all controls (added by the user at run-time)
from the QuickAccessToolbar.
[+] RemoveAllControls method. Removes all controls from the QuickAccessToolbar.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.2.001 - 2011-06-10
---------------------------------------------------------------------------
General
~~~~~~~
[-] GPF (General Protection Fault) error may happen when application quits,
if application uses several forms (or opens/closes one form several times)
with Office frame (CBM.EnableOfficeFrame=.T.).
[*] Corrected and enhanced Ribbon themes for Windows Vista/7 Aero.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.2.000 - 2011-04-20
---------------------------------------------------------------------------
General
~~~~~~~
[!][*] If you use Command Bars library with controls from the Common Controls library,
make sure you use the latest release (6.1 or later) of the Common Controls Library.
[*] The main VFP screen doesn't resize correctly, frame may disappear in case of command bars are attached to the Screen and the main VFP menu is hidden (AttachToScreen = .T., or CommandBarsManager added directly to the Screen and HideSysMenu = .T.).
[!][-] Fixed some potential problems that may cause "API call caused an exception" error.
CommandBarsManager class
~~~~~~~~~~~~~~~~~~~~~~~~
[+] DoEvents method. Executes all pending Windows events. Useful when _VFP.AutoYield is set to False. DoEvents method doesn't impact performance and works a lot faster than standard 'DOEVENTS FORCE' command.
[+] SuspendIdleUpdate property. When set to True, the library doesn't refresh command bars (SkipFor and MarkFor properties are not evaluated) on the form in the idle state. Default is False.
[+] UseKeyboardCues property. Gets or sets a value indicating how keyboard cues (hot key underlines/access keys) are used.
For example: control has the Caption property set to "\
[*] CustomUI. Specify both (not empty) "supertip" and "description" attributes to create
button with ButtonStyle=5 (Image, Caption and Description).
Note: "description" attribute has a higher priority, so its value will
be used for the Description property of a control.
Example:
Ribbon.QuickAccessToolbar controls
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[*] Visible property. Specifies whether the control is visible, or not. Default is True.
Note: Assigining .F. to the Visible property also sets the _ACB_CHF_HIDEGENERIC flag to the HideFlags property. So, the control becomes invisible and removed from the "Customize Quick Access Toolbar" menu.
[*] HideFlags property. Specifies the visibility of the control. Default is 0 (no flags set, the control is visible).
For additional information see _ACB_CHF_* constants defined in the ARGCommandBars.h file.
RibbonTab class
~~~~~~~~~~~~~~~
[-] Enabled property. Specifies whether the tab is enabled, or not. Default is True.
Note/Tip: in case you are going to disable the current/active tab: change active tab to other (enabled) tab, because controls of active (but disabled) tab remain enabled and available.
In case all tabs are disabled, set ActiveTab property of the Ribbon to 0 (Zero).
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.1.000 - 2010-08-26
---------------------------------------------------------------------------
General
~~~~~~~
[+] Themed Label (_label class) added to the Extensions library (ARGCommandBarsExt).
[+] Themed Button (_button class) added to the Extensions library (ARGCommandBarsExt).
[+] Gradient image (_gradientImage class) added to the Extensions library (ARGCommandBarsExt).
CommandBarsManager class
~~~~~~~~~~~~~~~~~~~~~~~~
[+] ShowPopupTooltips property. Specifies whether to show ToolTips for controls in popup menus. Default is .T.
Popup controls
~~~~~~~~~~~~~~
[+] ShowPopupTooltip property. Specifies whether to show ToolTip for the control in a popup menu. Default is .T.
Ribbon class
~~~~~~~~~~~~
[*] DisableCustomize property. Specifies whether the ribbon customization is disabled, or not. Default is .T.
When set to .F., "Customize Quick Access Toolbar" and "More commands..." items appear in the ribbon context menu.
[+] OnCustomize event. Fires (if DisableCustomize set to .F.) when "Customize Quick Access Toolbar" or
"More commands..." item of the ribbon context menu is selected.
You can use this event to create your own Qat/Ribbon customization form.
[*] Fixed some internal CustomUI issues.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.0.014 - 2010-06-24
---------------------------------------------------------------------------
General
~~~~~~~
[+] Support (partial; full support will be added later) of High-DPI and Large-Fonts awareness.
[+] Images for built-in Office icons (see OfficeImageId property): 20x20, 24x24, 40x40, 48x48.
So, built-in Office icons appear correctly when High-DPI or Large-Fonts used.
[!][*] ARGRibbonResource.dll file updated.
[*] Some colors of Office 2010 color schemes are changed/corrected.
CommandBar/MenuBar/Popup/Ribbon Controls
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[*] SetPicture method. Extended tnImageSize parameter.
Syntax: SetPicture( tcImageFile [, tnImageSize])
Parameters:
tcImageFile - image file to load;
tnImageSize - image size, optional. Possible values:
16 - load 16x16 pixels image, default;
20 - load 20x20 pixels image (new);
24 - load 24x24 pixels image (new);
32 - load 32x32 pixels image;
40 - load 40x40 pixels image (new);
48 - load 48x48 pixels image (new).
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.0.013 - 2010-05-29
---------------------------------------------------------------------------
General
~~~~~~~
[!][-] Incorrect controls/commandbars/ribbon size, if DPI setting is changed to non-standard value (96 DPI).
[!][*] ARGRibbonResource.dll file updated.
[*] Colors of Office 2010 color schemes are changed/corrected.
DialogBar class
~~~~~~~~~~~~~~~
[!][-] Child VFP forms ignore (do not respond to) mouse clicks, if main form maximized/restored, DialogBar is docked/undocked, or floating DialogBar is moved.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.0.012 - 2010-05-18
---------------------------------------------------------------------------
General
~~~~~~~
[!][-] VFP menus don't work, when command bars added to the main screen.
RibbonTab class
~~~~~~~~~~~~~~~
[-] Caption of contextual tabs/headers displayed in wrong position.
Ribbon.OfficeMenu object
~~~~~~~~~~~~~~~~~~~~~~~~
[-] Visible property. Office button visibility doesn't change at run-time.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.0.011 - 2010-05-17
---------------------------------------------------------------------------
General
~~~~~~~
[!][*] ARGRibbonResource.dll file updated.
[*] Some colors of Office 2010 color schemes are changed/corrected.
CommandBar/MenuBar/Popup/Ribbon Controls
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[!][*] OnClick property is obsolete and will be removed in future version. Use OnAction property instead.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.0.010 - 2010-05-14
---------------------------------------------------------------------------
General
~~~~~~~
[!][*] ARGRibbonResource.dll file updated.
Ribbon.OfficeMenu object
~~~~~~~~~~~~~~~~~~~~~~~~
[-] ToolTip property. Tooltip doesn't change at run-time.
[-] Description property. Description doesn't change at run-time.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.0.009 - 2010-04-02
---------------------------------------------------------------------------
Ribbon class
~~~~~~~~~~~~
[+] LoadCustomUI method supports "getContent" attribute of the "dynamicMenu" element.
Example:
Note: the current implementation of the getContent callback function
receives two parameters: toControl, taItems.
toControl - reference to the CommandBarMenuItem object,
taItems - reference to the array that will contain menu items.
For example see the GetDynamicContent method of the frmRibbon form.
[+] LoadCustomUI method supports "menuSeparator" element.
Example:
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.0.008 - 2010-02-21
---------------------------------------------------------------------------
General
~~~~~~~
[-] The library does not use Closable property of the form anymore.
The Close button highlighting do not work when value of this
property changed to .F., and then back to .T.
VFP issue. Applies only to Windows Vista and Seven.
CommandBarsManager class
~~~~~~~~~~~~~~~~~~~~~~~~
[+] UseCyrillicIcons property. Specifies whether the library uses localized
(cyrillic) icons to display predefined images (see OfficeImageId property)
such as "Bold", "Italic", "SortAscending" and so on. Default is False.
Makes sense and applies only to cyrillic locales (Russian etc.).
Ribbon class
~~~~~~~~~~~~
[+] PopupOldStyleBehavior property. Specifies the ribbon popups behavior.
If set to True, popups of popup controls are closing when the mouse
pointer moved to other ribbon controls. Default is False.
Ribbon controls
~~~~~~~~~~~~~~~
[-] SetFocus method doesn't set the keyboard focus to the control.
Ribbon.OfficeMenu object
~~~~~~~~~~~~~~~~~~~~~~~~
[+] CloseFormOnDblClick property. Specifies whether the form will close
when the user double clicks the Office Button. Default is True.
Applies to Top-level forms with Office Button style of Office 2007.
[-] SkipFor property of child items does not work as expected.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.0.007 - 2009-12-30
---------------------------------------------------------------------------
General
~~~~~~~
[-] StatusBar do not display icons assigned to panels, if icons are set
before InitCommandBars.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.0.006 - 2009-12-30
---------------------------------------------------------------------------
General
~~~~~~~
[-] StatusBar panels from Common Controls Library are displayed with borders
even the BorderStyle is set to 0 (no borders).
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.0.005 - 2009-12-29
---------------------------------------------------------------------------
General
~~~~~~~
[!][-] Recreating (call to Recreate method) StatusBar control from Common
Controls Library after InitCommandBars method causes the library to stop
working as expected. Also, it may cause GPF or VFP "Internal consistency error".
[!][+] Extended behavior of StatusBar panels (from Common Controls Library).
Panels behave as buttons if panel's property PanelStyle is set to 1 (Button).
Tip: Use Click event of the StatusBar control to handle panel/button click event.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.0.004 - 2009-12-21
---------------------------------------------------------------------------
CommandBarsManager class
~~~~~~~~~~~~~~~~~~~~~~~~
[*] SetStatusBarDivider method.
Sets the position (pane index) of the status bar divider.
Syntax: SetStatusBarDivider( tnIndex)
Parameters:
tnIndex - the index of pane from which the status bar
should be visually divided:
"light" part - panels 1 thru tnIndex-1
"dark" part - panels tnIndex thru PanelsCount.
Ribbon class
~~~~~~~~~~~~
[!][-] Tooltips of the Ribbon controls cover Quick Access Toolbar (QAT) items
when QAT is located below Ribbon.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.0.003 - 2009-12-20
---------------------------------------------------------------------------
Ribbon.OfficeMenu object
~~~~~~~~~~~~~~~~~~~~~~~~
[+] ShowImageInToolTip property. Specifies whether the image appears in
the tool tip. Default is True.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.0.002 - 2009-12-20
---------------------------------------------------------------------------
Some internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.0.001 - 2009-12-19
---------------------------------------------------------------------------
General
~~~~~~~
[!][*] StatusBar control (from Common Controls Library) doesn't show images
assigned to StatusBar panels.
CommandBar/Menu/Popup/Ribbon controls
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[!][*] LargeIcon property is deprecated, it will no longer be supported in
a future release and should no longer be used. Use ControlSize property
instead.
[+] ControlSize property. Specifies the icon (and control) size.
Values: 0 - Auto (default);
1 - Normal (small);
2 - Large.
Other internal fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 8.0.000 - 2009-12-13
---------------------------------------------------------------------------
General
~~~~~~~
[!][+] Office 2010 style for the Office menu/button.
[!][*] Color schemes changed. Added new Office 2010 color schemes (Blue and Black).
"White" color scheme changed to Office 2010 "Silver"
[!][+] Some common Office icons (such as FileNew, FileOpen etc.) are stored
in the library so there is no need to use external BMP and/or PNG files.
All you need to do is just set the OfficeImageId property of the control.
[!][+] Ribbon customization and extensibility supported (partially).
For more information look for the "Ribbon Extensibility", "CustomUI"...
on MS/MSDN web site.
[!][-] Fixed all (at least known) potential problems with "buffer overruns".
[!][*] Updated ARGRibbonResource.dll file.
[!][-] Office menu/button on the Ribbon doesn't have an access key, so there
is no way to activate it by using keyboard.
CommandBarsManager class
~~~~~~~~~~~~~~~~~~~~~~~~
[+] AllowDuplicatedShortcutKeys property. Specifies whether the same shortcut
key can be assigned to different controls. Default is .F.
[!][+] EnableOfficeFrame property. This is the replacement for the deprecated
EnableOffice2007Frame property.
[!][*] EnableOffice2007Frame property is deprecated, it will no longer be
supported in a future release and should no longer be used. Assignments
to this property will generate an error message.
Use EnableOfficeFrame property instead.
[+] DisableFrame property. Allows to disable the window containing CBM object,
instead of disabling all child windows (scroll bars etc.) when you set
CBM's Enabled property to .F.. Default value is .F.
Useful when you run child modal forms that are Desktop or Top-Level forms.
Example:
ThisForm.CBM.DisableFrame = .T.
ThisForm.CBM.Enabled = .F.
&& ... run modal form here
&& ThisForm.CBM.ShowModalForm( someForm)
&& or
&& Do Form someModalForm
ThisForm.CBM.Enabled = .T.
Urgent Note: the ShowModalForm method is the most preferred way to show
modal forms (the following isn't required) but, if you use DO FORM,
it is a good idea to enable CBM object of the main form before
child modal form closes/releases.
For example, assume the "mainForm" variable references the calling
main form:
&& Destroy event (or Release method) of a modal form/class
mainForm.CBM.Enabled = .T.
DoDefault()
[*] ColorScheme property. Returns the current color scheme. Applicable to
Office 2007 (6) and Ribbon (7) visual themes.
Values: 0 - Office 2007 Blue (default);
1 - Office 2007 Black;
2 - Office 2007 Aqua;
3 - Office 2007 Silver;
4 - Office 2010 Blue;
5 - Office 2010 Silver;
6 - Office 2010 Black;
7 - Windows 7 Scenic.
[*] SetColorScheme method. Sets the current visual theme and built-in color scheme.
Syntax: SetColorScheme( tnVisualTheme, tnColorScheme)
Parameters:
tnVisualTheme - specifies the base visual theme:
6 - Office 2007;
7 - Ribbon.
tnColorScheme - specifies the color scheme:
0 - Office 2007 Blue (default);
1 - Office 2007 Black;
2 - Office 2007 Aqua;
3 - Office 2007 Silver;
4 - Office 2010 Blue;
5 - Office 2010 Silver;
6 - Office 2010 Black;
7 - Windows 7 Scenic.
CommandBar/MenuBar/DialogBar classes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[+] ShowInToolbarList property. Specifies whether the bar appears in the toolbar list.
CommandBar/Ribbon controls
~~~~~~~~~~~~~~~~~~~~~~~~~~
[+] OfficeImageId property. Specifies the image to display on the control.
For the list of supported images see _imgMso_* constants defined
in the ARGCommandBars.h file.
Also, you can assing VFP system menu bar identifiers to the OfficeImageId
property such as "_mfi_new", "_mfi_save" and so on.
Example:
cmdNew.OfficeImageId = "FileNew"
cmdSave.OfficeImageId = "_mfi_save"
[-] ShortcutText property. Empty string ("") stored to this property doesn't reset control shortcut, so the shortcut assigned earlier to control still works.
Ribbon class
~~~~~~~~~~~~
[+] LoadCustomUI method.
Loads the custom UI from the specified XML file or the string containing XML data.
Example:
ThisForm.Ribbon.LoadCustomUI( "CustomUI.xml")
[+] RibbonXml property. Contains the current XML representation of the Ribbon UI.
RibbonGroup class
~~~~~~~~~~~~~~~~~
[*] ControlsCentering property. Default value changed to .T.
Ribbon.OfficeMenu object
~~~~~~~~~~~~~~~~~~~~~~~~
[+] ButtonStyle property. Specifies Office Button style.
Values: 0 - Automatic (depends on the selected Color Scheme);
1 - Office 2007;
2 - Office 2010.
[+] ButtonColor property. Specifies Office Button color. Applies to Office 2010 style button
Values: 0 - None (simple button);
1 - Blue;
2 - Yellow;
3 - Green;
4 - Red;
5 - Purple;
6 - Cyan;
7 - Orange.
[+] Caption property. Default is "\
ThisForm.CBM.AfterShowModalForm()
---------------------------------------------------------------------------
Version 4.0.008 - 2007-01-12
---------------------------------------------------------------------------
CommandBarsManager class
~~~~~~~~~~~~~~~~~~~~~~~~
[-] RefreshCommandBars method doesn't refresh command bars.
CommandBar controls
~~~~~~~~~~~~~~~~~~~
[-] Keyboard shortcuts execute associated command even when the Command Bars
disabled (ThisForm.CBM.Enabled = .F.).
[-] After the InitCommandBars the HideFlags property doesn't work as expected.
Other fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 4.0.007 - 2006-12-29
---------------------------------------------------------------------------
ComboBox and TextBox controls
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[+] CueBunner property.
Specifies the text that is displayed as the text cue, or tip, in an edit
control when the control is empty and does not have focus.
Requires Windows XP or later.
ControlCustom control
~~~~~~~~~~~~~~~~~~~~~
[+] VerticalPositionOptions property.
Specifies whether the control is shown (and how) when the parent toolbar
vertically docked.
Other fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 4.0.006 - 2006-12-21
---------------------------------------------------------------------------
General
~~~~~~~
[-] Some colors do not consist with MS Office/Visual Studio colors.
Other fixes, corrections and improvements.
---------------------------------------------------------------------------
Version 4.0.005 - 2006-12-18
---------------------------------------------------------------------------
CommandBar controls
~~~~~~~~~~~~~~~~~~~
[!][-] Setting the ShortcutText property of a control at run-time causes
API exception.
[-] Assigning equal shortcuts for two different controls with the same
functionality ("Ctrl+S" for "Save" button and "Save" menu item,
for sample) doesn't work.
CommandBarsManager class
~~~~~~~~~~~~~~~~~~~~~~~~
[*] OnCommand method receives additional parameter - the reference to a control.
Syntax: ThisForm.CBM.OnCommand( tnCommandID, toControl)
Parameters:
tnCommandID - command identifier;
toControl - the reference to a control.
---------------------------------------------------------------------------
Version 4.0.004 - 2006-11-22
---------------------------------------------------------------------------
Minor changes and corrections
---------------------------------------------------------------------------
Version 4.0.003 - 2006-11-17
---------------------------------------------------------------------------
Minor changes and corrections
---------------------------------------------------------------------------
Version 4.0.002 - 2006-11-07
---------------------------------------------------------------------------
CommandBar controls
~~~~~~~~~~~~~~~~~~~
[-] Setting the Visible property of a control to .F. (before InitCommandBars)
makes a control completely unavailable to the user: hides and removes
control from the "Add or Remove Buttons" popup.
Tip:
To hide control and remove it from the "Add or Remove Buttons" popup,
set the HideFlags property to 1.
---------------------------------------------------------------------------
Version 4.0.001 - 2006-11-03
---------------------------------------------------------------------------
CommandBarsManager class
~~~~~~~~~~~~~~~~~~~~~~~~
[*] SetColor method now works for all themes except for Windows XP theme.
[-] RefreshCommandBars method doesn't refresh undocked commandbars/menus
---------------------------------------------------------------------------
Version 4.0.000 - 2006-11-02
---------------------------------------------------------------------------
CommandBarsManager class
~~~~~~~~~~~~~~~~~~~~~~~~
[+] SetColor method. Allows to change standard colors and create custom themes.
Syntax: ThisForm.CBM.SetColor( tnColorIdx, tnColor)
Parameters:
tnColorIdx - the index of a color;
tnColor - new color value;
For more information, see new _ACB_COLOR_* definitions in the
ARGCommandBars.h file.
[+] RemoveCommandBar method. Removes a command/menu bar, popup at run-time.
Syntax: ThisForm.CBM.RemoveCommandBar( toBar)
Parameters:
toBar - the reference to a command/menu bar, popup
CommandBar controls
~~~~~~~~~~~~~~~~~~~
[+] Alignment property.
[+] DisableCustomize property.
[+] Index property. Changes the order of the control in a command/menu bar
or popup at run-time.
[+] IsVisible method.
Syntax: lVisible = ThisForm.cmdBar1.button1.IsVisible()
[+] Delete method. Removes a control from a command/menu bar, popup
at run-time.
Syntax: ThisForm.cmdBar1.button1.Delete()
[-] Setting the Visible property of a control to .F. (after InitCommandBars)
hides a control and removes it from the "Add or Remove Buttons" popup.
[-] Setting the HideFlags property after InitCommandBars doesn't work.
---------------------------------------------------------------------------
Version 3.6.024 - 2006-09-22
---------------------------------------------------------------------------
General
~~~~~~~
[+] Support for Office 2007 theme.
TextBox control
~~~~~~~~~~~~~~~
[+] ReadOnly property. Default .F.
Minor changes and corrections
---------------------------------------------------------------------------
Version 3.6.023 - 2006-09-13
---------------------------------------------------------------------------
[-] Command assigned to the CTRL+F10 key combination with ON KEY LABEL
does not execute.
Minor changes and corrections
---------------------------------------------------------------------------
Version 3.6.022 - 2006-09-07
---------------------------------------------------------------------------
[-] Sometimes forms do not activate when selected from the menu containing
the list of open forms (SpecialControl = 2 - WindowList)
[-] Keyboard shortcuts fire the Click event of disabled menu items.
Minor changes and corrections
---------------------------------------------------------------------------
Version 3.6.021
---------------------------------------------------------------------------
Minor changes and corrections
---------------------------------------------------------------------------
Version 3.6.020
---------------------------------------------------------------------------
[-] Minimize, restore, maximize and close buttons of maximized MDI form
do not work when AttachToScreen property is set to .T.
---------------------------------------------------------------------------
Version 3.6.019
---------------------------------------------------------------------------
Minor changes and corrections
---------------------------------------------------------------------------
Version 3.6.018
---------------------------------------------------------------------------
Minor changes and corrections
---------------------------------------------------------------------------
Version 3.6.017
---------------------------------------------------------------------------
TextBox control
~~~~~~~~~~~~~~~
[+] SelectOnEntry property. Default .F.
---------------------------------------------------------------------------
Version 3.6.016
---------------------------------------------------------------------------
ComboBox and TextBox controls
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[-] Control doesn't receive keyboard focus when the SetFocus method is
called in code.
---------------------------------------------------------------------------
Version 3.6.015
---------------------------------------------------------------------------
Minor changes and corrections
---------------------------------------------------------------------------
Version 3.6.014
---------------------------------------------------------------------------
CommandBar controls
~~~~~~~~~~~~~~~~~~~
[-] SetPicture method doesn't change picture at run-time.
---------------------------------------------------------------------------
Version 3.6.013
---------------------------------------------------------------------------
Minor changes and corrections
---------------------------------------------------------------------------
Version 3.6.012
---------------------------------------------------------------------------
Minor changes and corrections
---------------------------------------------------------------------------
Version 3.6.011
---------------------------------------------------------------------------
CommandBarsManager class
~~~~~~~~~~~~~~~~~~~~~~~~
[*] Released properties:
- DisplayTooltips;
- DisplayKeysInTooltips;
- DisableCustomize;
- MenuAnimationStyle
---------------------------------------------------------------------------
Version 3.6.010
---------------------------------------------------------------------------
CommandBar controls
~~~~~~~~~~~~~~~~~~~
[-] The SplitButton's caption gets a dark gray background if a control
is the first visible control on a command bar.
---------------------------------------------------------------------------
Version 3.6.009
---------------------------------------------------------------------------
General
~~~~~~~
[+] Added support for GIF and JPG images.
---------------------------------------------------------------------------
Version 3.6.008
---------------------------------------------------------------------------
General
~~~~~~~
[-] Keyboard shortcuts and menu do not work if a form contains ActiveX
controls.
CommandBar class
~~~~~~~~~~~~~~~~
[+] Activate method.
Syntax: ThisForm.cmdBar1.Activate( [tnControlIndex])
Parameters:
tnControlIndex - Specifies the index of a control that is
automatically selected when the menu/command bar is activated.
---------------------------------------------------------------------------
Version 3.6.007
---------------------------------------------------------------------------
CommandBarsManager class
~~~~~~~~~~~~~~~~~~~~~~~~
[*] CreateGradientBitmap method generates incompatible bitmap if the system
display is set to low resolution (<= 16 bits per pixel).
---------------------------------------------------------------------------
Version 3.6.006
---------------------------------------------------------------------------
CommandBar class
~~~~~~~~~~~~~~~~
[+] ShowTextBelowIcons property.
---------------------------------------------------------------------------
Version 3.6.005
---------------------------------------------------------------------------
General
~~~~~~~
[+] Added support for the NavigationPane control (Outlook UI Library)
CommandBarsManager class
~~~~~~~~~~~~~~~~~~~~~~~~
[*] GetColor method.
For more information, see new _ACB_COLOR_* definitions in the
ARGCommandBars.h file.
---------------------------------------------------------------------------
Version 3.6.004
---------------------------------------------------------------------------
General
~~~~~~~
[+] You can handle errors that occur in the library objects at run time.
Define public variable "__ACBDEBUG__" and set its value to .T.:
Public __ACBDEBUG__
__ACBDEBUG__ = .T.
CommandBar controls
~~~~~~~~~~~~~~~~~~~
[-] Setting the Tooltip property at run-time doesn't change the tooltip
text of a control
---------------------------------------------------------------------------
Version 3.6.003
---------------------------------------------------------------------------
Minor changes and corrections
---------------------------------------------------------------------------
Version 3.6.002
---------------------------------------------------------------------------
Minor changes and corrections
---------------------------------------------------------------------------
Version 3.6.001
---------------------------------------------------------------------------
Minor changes and corrections
---------------------------------------------------------------------------
Version 3.6.000
---------------------------------------------------------------------------
General
~~~~~~~
[-] Wait cursor appears sometime when the mouse pointer moves outside of
the docking area
[-] "Reset Toolbar" option does not re-hide buttons that were hidden by
default, but checked for display by a user.
CommandBarsManager class
~~~~~~~~~~~~~~~~~~~~~~~~
[+] OnSystemColorsChanged event
[+] OnVisualThemeChanged event
[+] AttachToFrame property
[+] GetFormSize method. Returns real size (Width and Height) of the form.
Maybe useful if AttachToFrame property set to .T. the Width and Height
properties of the form contain the width and height of client area (inside
dock bars), and not real width and height of the form.
Syntax: ThisForm.CBM.GetFormSize( @lnWidth, @lnHeight)
[+] SetFormSize method.
Syntax: ThisForm.CBM.SetFormSize( tnWidth, tnHeight)
[*] GetColor method.
Syntax: ThisForm.CBM.GetColor( tnColorIndex)
Parameters:
tnColorIndex - the index of a color to retrieve.
For more information, see _ACB_COLOR_* definitions in
the ARGCommandBars.h file.
[+] CreateGradientBitmap method.
Syntax: ThisForm.CBM.CreateGradientBitmap( tcFileName, tnColor1, tnColor2, tnSize, tlVertical)
Parameters:
tcFileName - BMP file name to create;
tnColor1 - top/left color;
tnColor2 - bottom/right color;
tnSize - width or height of the image. Depends on value of the tlVertical parameter;
tlVertical - gradient fill mode:
.T. - vertical;
.F. - horizontal.
CommandBar class
~~~~~~~~~~~~~~~~
[+] DockingFlags property
[+] DisableCustomize property
CommandBar controls
~~~~~~~~~~~~~~~~~~~
[-] BeginGroup doesn't change at run-time
---------------------------------------------------------------------------
Version 3.5.001
---------------------------------------------------------------------------
N/A
---------------------------------------------------------------------------
Version 3.5.000
---------------------------------------------------------------------------
N/A