A single developer license allows 1 developer to use the components for development, obtain free updates & support for a full version cycle of the product. The license is not transferable.
A single developer license allows 1 developer to use the components for development, obtain free updates & support for 1 year. The license is not transferable.
A single developer license allows 1 developer to use the components for development, obtain free updates & support for 2 years. The license is not transferable.
A small team license allows 2 developers within the company to use the components for development, obtain free updates & support for a full version cycle of the product. The license is not transferable.
A small team license allows 2 developers within the company to use the components for development, obtain free updates & support for 1 year. The license is not transferable.
A small team license allows 2 developers within the company to use the components for development, obtain free updates & support for 2 years. The license is not transferable.
A site license allows an unlimited number of developers within the company to use the components for development, obtain free updates & support for a full version cycle of the product. Developers can be added at any time during the full version cycle.
A site license allows an unlimited number of developers within the company to use the components for development, obtain free updates & support for 1 year. Developers can be added at any time during the 1 year period.
A site license allows an unlimited number of developers within the company to use the components for development, obtain free updates & support for 2 years. Developers can be added at any time during the 2 year period.
Changing font and font size in TAdvMenuOfficeStyler does not work
To use a custom font for the menu you have to change in the TadvMenuOfficeStyler the property UseSystemFont = false. Otherwise, the menu styler forces the font to the font as defined in the operating system.
Nancy Lescouhier (Oct 7, 2010)
Programmatically make toolbar floating and dock toolbar
To make a toolbar on a TAdvDockPanel floating use:
AdvToolBar.SetToolBarFloating(point(X,Y));
with X,Y the coordinates where to put the floating toolbar.
To dock the toolbar back to the TAdvDockPanel, use:
AdvToolBar.ManualDock(AdvDockPanel);
Bruno Fierens (Jul 15, 2010)
Using a toolbar customizer
Drop a TAdvToolBar and TAdvToolBarCustomizer on the form
Assign the AdvToolBar to AdvToolBarCustomizer.AdvToolBar. Click the toolbar right-handle and the toolbar customizer dialog will automatically appear.
Bruno Fierens (Jun 23, 2010)
Inserting, updating a menu item at runtime
When inserting or updating a menu item at runtime, do this with BeginUpdate / EndUpdate calls. This is a requirement due to an optimization for visual updates when the menu stylers are used. Following sample code snippet shows how to add a new menu item at runtime:
var
mnu: TMenuItem;
begin
AdvMainMenu1.BeginUpdate;
mnu := TMenuItem.Create(self);
mnu.Caption := 'New item';
AdvMainMenu1.Items[1].Insert(0,mnu);
AdvMainMenu1.EndUpdate;
end;
Bruno Fierens (Jun 22, 2010)
Changing the display time of TAdvOfficeHint
The hint time is controlled the same way as regular hints in Delphi.
This is set with :
Application.HintHidePause
Application.HintPause
Nancy Lescouhier (May 11, 2010)
Programmatically adding items to the application menu
This code snippet shows how menu items and submenu items can be programmatically added to the application menu, TAdvPreviewMenu:
begin
AdvPreviewMenu1.MenuItems.BeginUpdate;
with AdvPreviewMenu1.MenuItems.Add do
begin
Caption := 'Mainitem1';
SubMenuCaption := 'Sub menu caption1';
with SubItems.Add do
begin
Title := 'Subitem1';
Notes.Text := 'This is an additional note';
end;
end;
with AdvPreviewMenu1.MenuItems.Add do
begin
Caption := 'Mainitem2';
SubMenuCaption := 'Sub menu caption2';
with SubItems.Add do
begin
Title := 'Subitem2';
Notes.Text := 'This is an additional note';
end;
end;
AdvPreviewMenu1.MenuItems.EndUpdate;
end;
Bruno Fierens (Jan 11, 2010)
Programmatically adding page, toolbar and button to the ribbon
Following code snippet illustrates how you can add a new page with a new toolbar and a new button via code to the Office 2007 ribbon control. To test this, drop a TAdvToolBarPager on the form and add following code:
Providing an Office 2007 type hint for any control
The TMS components that have built-in support for Office 2007 type hints expose the property OfficeHint with which the hint title, notes, picture and help line can be set. If you want to use an Office 2007 for another standard VCL component or other 3rd party component, you can use the event AdvOfficeHint.OnBeforeShowHint. This sample demonstrates how this can be done. Via the event handler, an Office 2007 hint is set for a TAdvSmoothButton:
procedure TForm1.AdvOfficeHint1BeforeShowHint(Sender: TObject;
AControl: TControl; AHintInfo: TAdvHintInfo; var UseOfficeHint: Boolean);
begin
if AControl = AdvSmoothButton1 then
begin
UseOfficeHint := true; // set true to tell the TAdvOfficeHint it should display the hint in Office 2007 style
AHintInfo.Title := 'Button title';
AHintInfo.Notes.Text := AControl.Hint;
AHintInfo.Picture.LoadFromFile(''); // optionally add a hint picture here from file, resource or stream
end;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
// set the standard Hint to make sure it shows, this is reused as hint notes
AdvSmoothButton1.Hint := 'Smooth button hint';
end;
Bruno Fierens (Feb 2, 2009)
Starting with TMS ToolBars & Menus to create Office 2003 style applications
Step 1: Drop one or more TAdvDockPanel components on the form. With the property Align, select on which side of the form the toolbars will be dockable.
Step 2: Drop a TAdvToolBarOfficeStyler component on the form and assign it to AdvDockPanel.ToolBarStyler
Step 3: Drop one or more TAdvToolBar components on the TAdvDockPanel. Assign the TAdvToolBarOfficeStyler to the TAdvToolBar.ToolBarStyler property
Step 4: Right-click the TAdvToolBar and choose to add a button, menubutton or separator or drop any control on the TAdvToolBar
Bruno Fierens (Jan 27, 2009)
Using the TMS TAdvMenus with the TAdvToolBar
Step 1: Drop a TAdvMainMenu on the form and use the design-time editor to define the menu. Drop a TAdvMenuStyler on the form and assign it to TAdvToolBarStyler.AdvMenuStyler
Step 2: Remove the Form.Menu property
Step 3: Assign the TAdvMainMenu to TAdvToolBar.Menu
Bruno Fierens (Jan 27, 2009)
Starting with TMS ToolBars & Menus to create Office 2007 style applications
Choose File, New, Other, TMS Wizard, TMS ToolBar Application wizard : A new application with TAdvToolBarPager will be created
Bruno Fierens (Jan 27, 2009)
Handling shortcuts
As menus are assigned to a toolbar and not to a form and the form is responsible for shortcut handling, the TAdvToolBar's shortcuts can be handled by adding the following code in the form's OnShortCut event:
procedure TForm1.FormShortCut(var Msg: TWMKey; var Handled: Boolean);
begin
Handled := AdvToolBar1.IsShortCut(Msg);
end;
Bruno Fierens (Jan 27, 2009)
Upgrading from TAdvToolBar v1.x
Make sure to FIRST reopen ALL form files in your application that use the TAdvToolBar and/or TAdvToolBar styler components, ignore all property errors upon opening the forms and save the form files before rebuilding your application.
Bruno Fierens (Jan 27, 2009)
Using menu items with Notes
A menu item with a Notes text can be setup using \n to separate lines, ie
MenuItem.Caption := 'MenuCaption\nLine 1 of the notes text\nLine 2 of the notes text';