express sidebar

206
About The ExpressSideBar ExpressSideBar is a VCL implementation of the MS Outlook™ bar. Designed to be easy to use and built with a significant feature set...Just drop it on a form, double click the control and in a few moments, you can customize the ExpressSideBar for your needs. The ExpressSideBar includes a variety of features including: l Small and large icon views l Group and item customization l Full drag & drop support (including copying) l Animation on group change l Gradient color fills l Background picture l Mark sidebar items after they are clicked l Change font of group text l Change font of item text l Set the popup menu for groups and items l Change the paint style to Standard, Flat, or XP (Office 97™, Office 2000™, or Office XP™) l Store/restore ExpressSideBar™ states in the registry And of course a runtime customization window so that your end users can manipulate the layout of the SideBar to meet specific requirements. Page 1 of 206

Upload: giancarloqt

Post on 24-Oct-2014

218 views

Category:

Documents


12 download

TRANSCRIPT

Page 1: Express Sidebar

About The ExpressSideBar ExpressSideBar is a VCL implementation of the MS Outlook™ bar. Designed to be easy to use and built with a significant feature set...Just drop it on a form, double click the control and in a few moments, you can customize the ExpressSideBar for your needs. 

 The ExpressSideBar includes a variety of features including: 

l Small and large icon viewsl Group and item customizationl Full drag & drop support (including copying)l Animation on group changel Gradient color fillsl Background picturel Mark sidebar items after they are clickedl Change font of group textl Change font of item textl Set the popup menu for groups and itemsl Change the paint style to Standard, Flat, or XP (Office 97™, Office 2000™, or Office XP™)l Store/restore ExpressSideBar™ states in the registry

 And of course a runtime customization window so that your end users can manipulate the layout of the SideBar to meet specific requirements. 

Page 1 of 206

Page 2: Express Sidebar

 

Page 2 of 206

Page 3: Express Sidebar

Getting Started with ExpressSideBar™ Before compiling an application using the ExpressSideBar™, you must first determine whether you wish to enable runtime customization for your end-users. Using the runtime customization capabilities of the ExpressSideBar™, your end-users can easily add/remove sidebar items by calling the ExpressSideBar customization window. You determine at design time the set of SideBar items to make available, then in turn, make only a subset visible at runtime. This provides your end users with the ability to customize the application as their needs require. If you wish to implement SideBar customization, you must use the TdxSideBarStore component in conjunction with ExpressSideBar. Regardless of the decision to incorporate runtime customization in an application, you will ultimately write the same amount of event handlers (OnClick event of SideBar items only). This help file describes both variants and how to implement them in your application. A. ExpressSideBar - Without Runtime Customization  After installing the ExpressBars package, you will find the dxSideBar component within the ExpressBars component palette tab page. 

1. Drop a dxSideBar component onto a form. The control automatically aligns itself to the left edge of the form.

 

 

2. Drop two TImageList components on your form and set their properties: Height, Width, and Images. Rename the first image component to imgSmall. Name the second image component imgLarge. We will use imgSmall to store 16X16 images and imgLarge to store 32X32 pixel images. Double click imgSmall and select the appropriate images. Repeat the same steps for imgLarge.

 Note: You are free to use images of any size. We recommend these sizes as they are the most popular image sizes and meet the design guidelines set forth by Microsoft®. 

Page 3 of 206

Page 4: Express Sidebar

3. Link the LargeImages and SmallImages properties of the dxSideBar to the newly created image lists.

 

4. Double click the dxSideBar control to call its component editor. Press the Add command button within the Groups panel and enter the name of your first group. You are now ready to add individual items to the active SideBar group.

 

 Note: The active sidebar group is the last group at the top of the ExpressSideBar group area. 

5. Press the Add command button within the Item Properties panel and set its properties (Caption, Hint, LargeImage, Smallimage, CustomData and Tag). Move to the SideBar and select the newly added item. Note: A selected item will display a frame around along its edge. Use Drag & Drop to move and copy items. To change the icon type (Large/Small) of the active group, use the Icon Type check box.

 

Page 4 of 206

Page 5: Express Sidebar

 

 

6. You can now populate the ExpressSideBar with additional items and implement an OnClick event handler for each item. Write the following TdxSideBar.OnItemClick event. (You can distinguish the sidebar item by its Tag property.

 procedure TForm1.dxSideBar1ItemClick(Sender: TObject;Item: TdxSideBarItem); begincase Item.Tag do 0: ShowMessage('You have chosen the side item with Tag=0'); 10: ShowMessage('Hello'); else ShowMessage('Unknown sidebar item. I'm Sorry!'); end; end; You now have a fully functional SideBar. B. ExpressSideBar - Full Runtime Customization  To allow end users the flexibility to modify the ExpressSideBar™ as their needs require, you must take the following steps: 

1. Drop a dxSideBar component on your form. The control automatically aligns itself to the left edge of the form.

 

2. Drop two TImageList components on your form and set their properties: Height, Width, and Images. Rename the first image component imgSmall. Name the second image component imgLarge. We will use imgSmall to store 16X16 images and imgLarge to store 32X32 pixel images. Double click imgSmall and select the appropriate images. Repeat the same step for imgLarge.

 Note: You are free to use images of any size. We recommend these sizes as they are the most popular image sizes and meet the design guidelines set forth by Microsoft®. 

Page 5 of 206

Page 6: Express Sidebar

3. Link the TdxSideBarStore.LargeImages and TdxSideBarStore.SmallImages to the newly created image lists.

 

4. Double click on TdxSideBarStore to call its component editor.

 Rename the default category and add a second category. Add the stored items to the active category and set appropriate properties: 

 

5. Write an on click event handler for the stored items by using the following code:

 procedure TForm1.dxSideBarStore1Item3Click(Sender: TObject;Item: TdxSideBarItem); beginShowMessage ('Hello, thank you!'); end; 

6. Set up the TdxSideBar.Store property to TdxSideBarStore and double click on dxSideBar in order to call its component editor.

 

7. To associate the dxSideBar to the modified store, press the Default command on the bottom portion of the component editor. This action links the dxSideBar to the TdxSideBarStore items. You may then continue to add, copy, change or modify the properties of the dxSideBar as your needs require.

 

Page 6 of 206

Page 7: Express Sidebar

 

 By using the TdxSideBarStore, you allow your end-users full runtime control over the behavior of the sidebar. The ExpressSideBar was designed to allow you to have total control over your GUI design with minimal or no coding whatsoever. Here are even more features that can easily be added to your application - without writing a single line of code:  

l Gradient color fills; set by using the BkGround property of the dxSideBar.l Background picture; set by using the BkPicture property.l You can display the SideBar item as selected after it has been clicked by setting the CanSelected property to

True.l You can allow the end user to move and copy SideBar items, by using Drag & Drop. Set the DragMode property

to dmAutomatic.l Change the font of the group text using the GroupFont property.l Change the font of the item text using the ItemFont property.l Set the popup menu for Groups and Items by using the GroupPopupMenu and ItemPopupMenu. Use the

TdxSideBarPopupMenu that has the following default items (you won't need to write a single line of code to implement this - we have already done it for you): 'Add Group', 'Remove Group', 'Rename Group', 'Remove ShortCut', 'Rename ShortCut', 'Large Icons', 'Small Icons', 'Customize...'

l Change the paint style to Standard, Flat, or XP by setting the PaintStyle property.l Change the scroll delay on scrolling items by adjusting the ScrollDelay property. The default value is 300 (ms).l Change the spacing between items by adjusting the SpaceHeight property. The default value is 7 (pixels).l Finally, you can store/restore the ExpressSideBar™ states in the Windows Registry, by setting the registry path

in the RegistryPath property and setting the SaveToRegistry property to True.

Page 7 of 206

Page 8: Express Sidebar

ExpressSideBar: Resource StringsSee AlsoThis section describes resource strings used by the ExpressSideBar. See Resource Strings for general information. Each time an ExpressSideBar control needs a resource string for display, it calls the dxSideBarGetResourceString function. You can replace default resource strings at runtime, using the cxSetResourceString procedure. In this instance, you also need to specify the dxSideBarGetResourceString function, to call the cxGetResourceString function to retrieve resource strings. To do this, assign the cxGetResourceString function to the dxSideBarGetResourceStringFunc variable, as shown below. // Delphi

uses

dxsbstrs, cxClasses; // ...

initialization

dxSideBarGetResourceStringFunc := cxGetResourceString;  The resource strings used by ExpressSideBar are declared in the dxsbstrs unit. 

  Group Popup Menu

 

  Item Popup Menu

 

 Resource identifier Value Description DXSB_DEFAULTGROUPCAPTION 'New Group' The default caption of a newly created group.DXSB_CUSTOMIZECLOSEBUTTON 'Close' The Close button's caption in the Customizing form. 

 # Resource identifier Value 

1 DXSB_LARGEICONTYPE 'Large Icons'

2 DXSB_SMALLICONTYPE 'Small Icons'

3 DXSB_ADDGROUP 'Add Group'

4 DXSB_REMOVEGROUP 'Remove Group'

5 DXSB_RENAMEGROUP 'Rename Group'

6 DXSB_CUSTOMIZE 'Customize...'

 

 # Resource identifier Value 

Page 8 of 206

Page 9: Express Sidebar

1 DXSB_REMOVEITEM 'Remove ShortCut'

2 DXSB_RENAMEITEM 'Rename ShortCut'

 

Page 9 of 206

Page 10: Express Sidebar

Unit dxsbar ControlsTdxSideBar Visible componentsTdxSideBarStoreTdxSideBarPopupMenu Invisible componentsTdxStoredSideItem ObjectsTdxSideBarItemTdxSideBarItemsTdxSideGroupTdxSideGroups VariablesdxSideBarDragObject

Page 10 of 206

Page 11: Express Sidebar

TdxSideBar ObjectHierarchy Properties Methods Events

The TdxSidbar control is a VCL implementation of the sidebar element used in many commercial software applications. Unitdxsbar DescriptionThe TdxSideBar is used to create an ExpressSideBar control. Groups of a TdxSideBar are TdxSideGroup objects. A user selects a group by clicking a group's button which appears at the top or bottom of the control. To add a new (delete or edit an existing) group to a TdxSideBar control at design time use its component editor or TdxSideBarStore component.

Page 11 of 206

Page 12: Express Sidebar

TdxSideBarStore ObjectHierarchy Properties Methods

TdxSideBarStore is used by TdxSideBar controls. Unitdxsbar DescriptionUse the TdxSideBarStore component to allow end user runtime customization in your applications. SideBar customization allows end users to easily remove and or add SideBar items at run-time, by calling the ExpressSideBar customization window. You can specify a set of the SideBar items, but make visible only a subset. End-users may then determine the items to display to meet their specific needs. TdxSideBarStore is the parent of TdxStoredSideItem components and contains the information about Large and Small images. TdxSideBar uses the information to create items and display them to the user. To create an item in a TdxSideBar control you must assign the TdxSideBar.Store property to TdxSideBarStore and TdxSideBarStore must contain at least one TdxStoredSideItem. A TdxSideBarItem includes a StoredItem property which cannot be nil. TdxSideBarStore can work with any number of TdxSideBar controls. To create TdxSideBarItem at design time, double-click the TdxSideBarStore in your IDE.For your convenience, you can group TdxStoredSideItem components in a TdxSideBarStore by categories.

Page 12 of 206

Page 13: Express Sidebar

TdxSideBarPopupMenu ObjectHierarchy Properties Events

Encapsulates the properties, methods, and events of a popup menu and includes predefined menu items designed to function with TdxSideBar. Unitdxsbar DescriptionUse TdxSideBarPopupMenu to define a popup menu which appears when a user clicks an item or a TdxSideBar group with the right mouse button. To make a popup menu available, assign the TdxSideBarPopupMenu object to the TdxSideBar.GroupPopupMenu and TdxSideBar.ItemPopupMenu properties.

Page 13 of 206

Page 14: Express Sidebar

TdxStoredSideItem ObjectHierarchy Properties Events

TdxStoredSideItem is used by a TdxSideBarItem object. Unitdxsbar DescriptionTdxStoredSideItem is a child of TdxSideBarStore components. It contains information about Large and Small indexes of images, the default Caption, PopupMenu and the OnClick event. TdxSideBar uses this information to create items and then display them (the Store property). TdxSideBarItems have a StoredItem property. This allows for creation of a TdxStoredSideItem with the same properties, and to use these predefined properties for different TdxSideBars. For convenience, you can group TdxStoredSideItem components in a TdxSideBarStore using categories.

Page 14 of 206

Page 15: Express Sidebar

TdxSideBarItem ObjectHierarchy Properties Methods

Represents an item in a TdxSideGroup. Unitdxsbar DescriptionEach TdxSideGroup uses TdxSideBarItems to maintain a collection of TdxSideBarItem objects.

Page 15 of 206

Page 16: Express Sidebar

TdxSideBarItems ObjectHierarchy Properties Methods

Represents a container for TdxSideBarItem objects. Unitdxsbar DescriptionTdxSideBarItems maintains an indexed collection of TdxSideBarItems in its Items array. The Count property contains the number of items in this collection. At design time, use the dxSideBar component editor to add, remove, or modify items.

Page 16 of 206

Page 17: Express Sidebar

TdxSideGroup ObjectHierarchy Properties Methods

Represents a group in a TdxSideBar control. Unitdxsbar DescriptionEach TdxSideBar uses TdxSideGroups to maintain a collection of TdxSideGroup objects.

Page 17 of 206

Page 18: Express Sidebar

TdxSideGroups ObjectHierarchy Properties Methods

Represents a container for TdxSideGroup objects. Unitdxsbar DescriptionTdxSideGroups maintains an index of columns in its Items array. The Count property contains the number of columns in the collection. At design time, use the TdxSideBar component editor to add, remove, or modify groups.

Page 18 of 206

Page 19: Express Sidebar

dxSideBarDragObject VariableUsed for generating custom Drag & Drop operations for a TdxSideBar control. var dxSideBarDragObject: TdxSideBarDragObject; Unitdxsbar DescriptionUse this variable if you wish to enable custom Drag & Drop operations. You must create the variable at the beginning of the Drag event and destroy it when finished. Example:The following code allows you to drag a list box item (the values of the list box items are associated with TdxStoredSideItem) to TdxSideBar and create a new SideBar item using a predefined TdxStoredSideItem. procedure TForm1.ListBox1StartDrag(Sender: TObject;var DragObject: TDragObject);begindxSideBarDragObject := dxSideBarDragObject.Create(ListBox1, DragObject, Nil, dxSideBarStore.Items[ListBox1.ItemIndex]);end;procedure TForm1.ListBox1EndDrag(Sender, Target: TObject; X, Y: Integer);begindxSideBarDragObject.EndDrag(Target, X, Y); end;

Page 19 of 206

Page 20: Express Sidebar

Unit dximctrl ControlsTdxCustomImageListBoxTdxImageListBoxTdxCustomImageComboBoxTdxImageComboBoxTdxCustomSpinImageTdxSpinImage ObjectsTdxSpinImageItemTdxSpinImageItems

Page 20 of 206

Page 21: Express Sidebar

TdxCustomImageListBoxHierarchy Properties Methods Events

Represents a base class for ExpressImage list-box controls. Unitdximctrl DescriptionUse TdxCustomImageListBox as a base class when defining a control which represents a Windows list box with images. Do not create instances of TdxCustomImageListBox. To place an image list box on a form, use a TdxCustomImageListBox descendant, such as TdxImageListBox or TdxDBImageListBox.

Page 21 of 206

Page 22: Express Sidebar

TdxImageListBox ObjectHierarchy

Represents an easy method for adding an image to a standard TListBox control. Unitdximctrl DescriptionUse TdxImageListBox to display images from a list box control’s ImageList. TdxImageListBox implements generic behavior introduced in TdxCustomImageListbox.

Page 22 of 206

Page 23: Express Sidebar

TdxCustomImageComboBox ObjectHierarchy Properties Methods Events

Represents the base class for ExpressImage list-box controls. Unitdximctrl DescriptionUse TdxCustomImageComboBox as a base class when defining a control which represents a Windows Combo box with images. Do not create instances of TdxCustomImageComboBox. To place an image combo box on a form, use a descendant of TdxCustomImageComboBox, such as TdxImageComboBox or TdxDBImageComboBox.

Page 23 of 206

Page 24: Express Sidebar

TdxImageComboBox ObjectHierarchy

With TdxImageComboBox, you can easily add an image to a standard TComboBox control. Unitdximctrl DescriptionUse TdxImageComboBox to display images from ListImage within a combo box control. TdxImageComboBox implements generic behavior introduced in TdxCustomImageCombobox.

Page 24 of 206

Page 25: Express Sidebar

TdxCustomSpinImage ObjectHierarchy Properties Methods Events

TdxCustomSpinImage is the base class for ExpressSpinImage components. Unitdximctrl DescriptionUse TdxCustomSpinImage as a base class when defining a control which represents an image control with spin buttons. Images for a spin image control are drawn from an ImageList. Users can change an image by pressing Up, Down, Home or End keys or by using the Up-Down control and mouse actions. Do not create instances of TdxCustomSpinImage. To place a spin image on a form, use TdxCustomSpinImage descendants, such as TdxSpinImage or TdxDBSpinImage. Note: TdxCustomSpinImage does not use the TUpDown control and draws spinners and obtains messages in the non-client control area itself.

Page 25 of 206

Page 26: Express Sidebar

TdxSpinImage ObjectHierarchy

Represents an image control with Up/Down buttons. Unitdximctrl DescriptionImages for a spin image control are obtained from an ImageList. User can change an image by pressing the Up, Down, Home or End keys or by using the Up-Down buttons. TdxSpinImage implements generic behavior introduced in TdxCustomSpinImage. Note: TdxSpinImage does not use the TUpDown control and draws spinners and obtains messages in the non-client control area itself.

Page 26 of 206

Page 27: Express Sidebar

TdxSpinImageItem ObjectHierarchy Properties

Describes an individual item in a spin image control. Unitdximctrl DescriptionEach item in a spin image control is associated with a Value and optional image and hint referenced by the ImageIndex and Hint properties.

Page 27 of 206

Page 28: Express Sidebar

TdxSpinImageItems ObjectHierarchy Properties Methods

Maintains a list of items in a spin image control. Unitdximctrl DescriptionThe Items property of the spin image control is a TdxSpinImageItem object and maintains a collection of items in a spin image. Items can be added, deleted, inserted and moved within the spin image. You can access the nodes in a spin image via the Items property of the spin image.

Page 28 of 206

Page 29: Express Sidebar

TdxCustomImageComboBox EventsTdxCustomImageComboBox Legend In TdxCustomImageComboBox  OnDrawItem

Page 29 of 206

Page 30: Express Sidebar

TdxCustomImageListBox EventsTdxCustomImageListBox Legend In TdxCustomImageListBox  OnDrawItem

Page 30 of 206

Page 31: Express Sidebar

TdxCustomSpinImage EventsTdxCustomSpinImage Legend In TdxCustomSpinImage  OnChange

Page 31 of 206

Page 32: Express Sidebar

TdxCustomImageComboBox MethodsTdxCustomImageComboBox Legend In TdxCustomImageComboBox  AddItem  InsertItem  ExchangeItems  MoveItem  ValuesIndexOf

Page 32 of 206

Page 33: Express Sidebar

TdxCustomImageListBox MethodsTdxCustomImageListBox Legend In TdxCustomImageListBox  AddItem  InsertItem  ExchangeItems  MoveItem  ValuesIndexOf

Page 33 of 206

Page 34: Express Sidebar

TdxCustomSpinImage MethodsTdxCustomSpinImage Legend In TdxCustomSpinImage  Change  CanChange

Page 34 of 206

Page 35: Express Sidebar

TdxSpinImageItems MethodsTdxSpinImageItems In TdxSpinImageItems  Add  IndexOf

Page 35 of 206

Page 36: Express Sidebar

TdxCustomImageComboBox PropertiesTdxCustomImageComboBox Legend In TdxCustomImageComboBox  Alignment  ImageAlign  ImageIndexes  ImageList  MultiLines  Values  VertAlignment

Page 36 of 206

Page 37: Express Sidebar

TdxCustomImageListBox PropertiesTdxCustomImageListBox Legend In TdxCustomImageListBox  Alignment  ImageAlign  ImageIndexes  ImageList  MultiLines  Values  VertAlignment

Page 37 of 206

Page 38: Express Sidebar

TdxCustomSpinImage PropertiesTdxCustomSpinImage Legend In TdxCustomSpinImage  AutoSize  DefaultImages  ImageHAlign  ImageList  ImageVAlign  ItemIndex  Items  ReadOnly  Stretch  UpDownAlign  UpDownOrientation  UpDownWidth  UseDblClick

Page 38 of 206

Page 39: Express Sidebar

TdxSpinImageItem PropertiesTdxSpinImageItem Legend In TdxSpinImageItem  ImageIndex  Hint  Value

Page 39 of 206

Page 40: Express Sidebar

TdxSpinImageItems PropertiesTdxSpinImageItems In TdxSpinImageItems  Items

Page 40 of 206

Page 41: Express Sidebar

TdxCustomImageComboBox.AddItemTdxCustomImageComboBox See Also

Appends an item to the end of a combo box. procedure AddItem(St: string; ImageIndex: Integer); DescriptionYou can add a new item by using the Items.Add and AddItem methods. The following lines of code are equivalent:  // Items.AdddxImageComboBox1.Items.Add('Item 1');dxImageComboBox1.ImageIndexes[dxImageComboBox1.Items.Count - 1] := 0;  // Items.AddItemdxImageComboBox1.AddItem('Item 1', 0);

Page 41 of 206

Page 42: Express Sidebar

TdxCustomImageComboBox.AlignmentTdxCustomImageComboBox See Also

Manages horizontal placement of text within TdxCustomImageComboBox. type

TAlignment = (taLeftJustify, taRightJustify, taCenter); 

property Alignment : TAlignment; DescriptionOptions include: Value Meaning 

taLeftJustify Text appears aligned along the left edge of the item rectangle.

taRightJustify Text appears aligned along the right edge of the item rectangle.

taCenter Text is horizontally centered in the item rectangle.

Page 42 of 206

Page 43: Express Sidebar

TdxCustomImageComboBox.ExchangeItemsTdxCustomImageComboBox See Also

Swaps the position of two items in TdxCustomImageComboBox. procedure ExchangeItems(Index1, Index2: Integer); DescriptionThis method is similar to Items.Exchange, except that ExchangeItems also changes the position of ImageIndexes and Values.

Page 43 of 206

Page 44: Express Sidebar

TdxCustomImageComboBox.ImageAlignTdxCustomImageComboBox See Also

Manages placement of an image within TdxCustomImageComboBox. type

TdxImageAlign = (dxliLeft, dxliRight); 

property ImageAlign : TdxImageAlign; DescriptionSet this property to specify how an item image is aligned within the item rectangle of TdxCustomImageComboBox. Options include: Value Meaning 

dxliLeft The image appears aligned at the left edge of the item rectangle.

dxliRight The image appears aligned at the right edge of the item rectangle.

Page 44 of 206

Page 45: Express Sidebar

TdxCustomImageComboBox.ImageIndexesTdxCustomImageComboBox See Also

Contains an array of image indexes. property ImageIndexes[Index : Integer] : Integer; DescriptionUse this property to specify the ImageIndex for a particular item of TdxCustomImageComboBox. The following code snippet assigns the second image from ImageList to the fourth item:dxImageComboBox.ImageIndexes[3] := 1;

Page 45 of 206

Page 46: Express Sidebar

TdxCustomImageComboBox.ImageListTdxCustomImageComboBox See Also

Specifies the image list to use for image display in TdxCustomImageComboBox. property ImageList: TCustomImageList; DescriptionBy setting ImageIndexes, each item in a control may be associated with a bitmap in this image list.

Page 46 of 206

Page 47: Express Sidebar

TdxCustomImageComboBox.InsertItemTdxCustomImageComboBox See Also

Inserts an item at a specified position. procedure InsertItem(Index: Integer; St :String; ImageIndex: Integer); DescriptionYou can insert a new item by using the Items.Insert and InsertItem methods. The following lines of code are equivalent:  // Items.InsertdxImageComboBox1.Items.Insert(Index, ‘Item 1’); dxImageComboBox1.ImageIndexes[Index] := 0; // Items.AddItemdxImageComboBox1.InsertItem(Index, ‘Item 1’, 0);

Page 47 of 206

Page 48: Express Sidebar

TdxCustomImageComboBox.MoveItemTdxCustomImageComboBox See Also

Changes the position of an item. procedure MoveItem(CurIndex, NewIndex: Integer); DescriptionUse this method to move an item at CurIndex position to the NewIndex position. Positions are specified as zero-based indexes.  This method is similar to Items.Move, except that MoveItem also changes the position of ImageIndexes and Values.

Page 48 of 206

Page 49: Express Sidebar

TdxCustomImageComboBox.MultiLinesTdxCustomImageComboBox See Also

Specifies whether text wraps when it is too large for the width of the control. property MultiLines : Boolean; DescriptionSet this property to True to enable multi-line display of text within the control. In this instance, text that is too large for an item rectangle wraps and continues on additional lines. Otherwise, the text is truncated.

Page 49 of 206

Page 50: Express Sidebar

TdxCustomImageComboBox.OnDrawItemTdxCustomImageComboBox See Also

Occurs whenever an item in an image combo box needs to be redisplayed. typeTdxImageDrawItemEvent = procedure(Sender: TObject; Index: Integer; Rect: TRect) of object;

property OnDrawItem : TdxImageDrawItemEvent; DescriptionThe Index parameter is the position of an item in a list box. Rect represents the area in the list box where an item is to be drawn.

Page 50 of 206

Page 51: Express Sidebar

TdxCustomImageComboBox.ValuesTdxCustomImageComboBox

Represents an array of strings each of which is associated with a TdxCustomImageComboBox item. property Values[Index : Integer] : string; DescriptionUse this property to associate a particular item with a string value. The following code snippet associates the second item with the string ‘MC’ dxImageComboBox.Values[2] := ‘MC’; //Items[2] = 'Master Card'

Page 51 of 206

Page 52: Express Sidebar

TdxCustomImageComboBox.ValuesIndexOfTdxCustomImageComboBox

Returns the index of an item by its value. function ValuesIndexOf(Text : string) : Integer; DescriptionIf no items exists with specified Text value, this function returns -1.

Page 52 of 206

Page 53: Express Sidebar

TdxCustomImageComboBox.VertAlignmentTdxCustomImageComboBox See Also

Controls the vertical placement of text within TdxCustomImageComboBox. TVertAlignment = (tvaTop, tvaCenter, tvaBottom);

property VertAlignment : TVertAlignment; DescriptionOptions include: Value Meaning 

taLeftJustify Text appears aligned along the left edge of the item rectangle.

taRightJustify Text appears aligned along the right edge of the item rectangle.

taCenter Text is horizontally centered in the item rectangle.

Page 53 of 206

Page 54: Express Sidebar

TdxCustomImageListBox.AddItemTdxCustomImageListBox See Also

Appends an item to the end of the list. procedure AddItem(St: string; ImageIndex: Integer); DescriptionYou can add a new item by using the Items.Add and AddItem methods. The following lines of code are equivalent:  // Items.AdddxImageComboBox1.Items.Add(‘Item 1’); dxImageComboBox1.ImageIndexes[dxImageComboBox1.Items.Count - 1] := 0;  // Items.AddItemdxImageComboBox1.AddItem(‘Item 1’, 0);

Page 54 of 206

Page 55: Express Sidebar

TdxCustomImageListBox.AlignmentTdxCustomImageListBox See Also

Manages horizontal placement of text within TdxCustomImageListBox. type

TAlignment = (taLeftJustify, taRightJustify, taCenter); 

property Alignment : TAlignment; DescriptionOptions include: Value Meaning 

taLeftJustify Text appears aligned along the left edge of the item rectangle.

taRightJustify Text appears aligned along the right edge of the item rectangle.

taCenter Text is horizontally centered in the item rectangle.

Page 55 of 206

Page 56: Express Sidebar

TdxCustomImageListBox.ExchangeItemsTdxCustomImageListBox See Also

Swaps items identified by the Index1 and Index2 parameters. procedure ExchangeItems(Index1, Index2: Integer); DescriptionThis method is similar to Items.Exchange, except that ExchangeItems also changes the position of ImageIndexes and Values.

Page 56 of 206

Page 57: Express Sidebar

TdxCustomImageListBox.ImageAlignTdxCustomImageListBox See Also

Manages placement of an image within TdxCustomImageListBox. type

TdxImageAlign = (dxliLeft, dxliRight); 

property ImageAlign : TdxImageAlign; DescriptionSet this property to specify how an item image is aligned within the item rectangle of TdxCustomImageListBox. Options include:  Value Meaning 

dxliLeft The image appears aligned at the left edge of the item rectangle.

dxliRight The image appears aligned at the right edge of the item rectangle.

Page 57 of 206

Page 58: Express Sidebar

TdxCustomImageListBox.ImageIndexesTdxCustomImageListBox See Also

ImageIndexes contains an array of image indexes. property ImageIndexes[Index : Integer] : Integer; DescriptionUse this property to determine the ImageIndex for a particular TdxCustomImageListBox item. For example, the following code assigns the second image from the TdxCustomImageListBox.ImageList to the fourth item:  dxImageComboBox.ImageIndexes[3] := 1;

Page 58 of 206

Page 59: Express Sidebar

TdxCustomImageListBox.ImageListTdxCustomImageListBox See Also

Determines which image list to use for image display in TdxCustomImageListBox. property ImageList: TCustomImageList; DescriptionBy setting the ImageIndexes property, each item in the control can be associated with a bitmap in this image list.

Page 59 of 206

Page 60: Express Sidebar

TdxCustomImageListBox.InsertItemTdxCustomImageListBox See Also

Inserts an item to a specified position. procedure InsertItem(Index: Integer; St: string; ImageIndex: Integer); DescriptionYou can insert a new item by using the Items.Insert and InsertItem methods. The following lines of code are equivalent:  // Items.InsertdxImageComboBox1.Items.Insert(Index, ‘Item 1’); dxImageComboBox1.ImageIndexes[Index] := 0; // Items.AddItemdxImageComboBox1.InsertItem(Index, ‘Item 1’, 0);

Page 60 of 206

Page 61: Express Sidebar

TdxCustomImageListBox.MoveItemTdxCustomImageListBox See Also

Changes the position of an item. procedure MoveItem(CurIndex, NewIndex: Integer); DescriptionUse this method to move an item at CurIndex position to the NewIndex position. Positions are specified as zero-based indexes.  This method is similar to Items.Move, except that MoveItem also changes the position of ImageIndexes and Values.

Page 61 of 206

Page 62: Express Sidebar

TdxCustomImageListBox.MultiLinesTdxCustomImageListBox See Also

Specifies whether text wraps when it is too large for the width of the control. property MultiLines : Boolean; DescriptionSet this property to True to enable multi-line display of text within the control. In this instance, text that is too large for an item rectangle wraps and continues on additional lines. Otherwise, the text is truncated.

Page 62 of 206

Page 63: Express Sidebar

TdxCustomImageListBox.OnDrawItemTdxCustomImageListBox See Also

Occurs whenever an item in an image list box needs to be redisplayed. typeTdxImageDrawItemEvent = procedure(Sender: TObject; Index: Integer; Rect: TRect) of object;

property OnDrawItem : TdxImageDrawItemEvent; DescriptionThe Index parameter is the position of an item in a list box. Rect represents the area in the list box where an item is to be drawn.

Page 63 of 206

Page 64: Express Sidebar

TdxCustomImageListBox.ValuesTdxCustomImageListBox

Represents an array of strings each of which is associated with a TdxCustomImageListBox item. property Values[Index : Integer] : string; DescriptionUse this property to associate a particular item with a string value. The following code snippet associates the second item with the string ‘MC’. dxImageComboBox.Values[2] := ‘MC’; //Items[2] = ‘Master Card’

Page 64 of 206

Page 65: Express Sidebar

TdxCustomImageListBox.ValuesIndexOfTdxCustomImageListBox

Returns the index of an item by its value. function ValuesIndexOf(Text : string) : Integer; DescriptionIf no items exists with specified Text value, this function returns -1.

Page 65 of 206

Page 66: Express Sidebar

TdxCustomImageListBox.VertAlignmentTdxCustomImageListBox See Also

Controls the vertical placement of text within TdxCustomImageListBox. TVertAlignment = (tvaTop, tvaCenter, tvaBottom);

property VertAlignment : TVertAlignment; DescriptionOptions include: Value Meaning 

taLeftJustify Text appears aligned along the left edge of the item rectangle.

taRightJustify Text appears aligned along the right edge of the item rectangle.

taCenter Text is horizontally centered in the item rectangle.

Page 66 of 206

Page 67: Express Sidebar

TdxCustomSpinImage.AutoSizeTdxCustomSpinImage See Also

Determines whether a spin control resizes to accommodate the image displayed. property AutoSize: Boolean; DescriptionSet this property to True to ensure that the entire image is visible within the spin image control. When True, a spin image control is resized to accommodate the image specified by the ImageList property. Otherwise, the spin image control keeps its original size regardless of image size. If the spin image control is smaller than its image, only the portion of the picture that fits into the spin image control is visible. Note: If you prefer to resize an image to fit within the spin image control, use the Stretch property instead.

Page 67 of 206

Page 68: Express Sidebar

TdxCustomSpinImage.CanChangeTdxCustomSpinImage

Returns True if a spin image control can change the ImageIndex property. function CanChange : Boolean; virtual; DescriptionNote: When overriding the CanChange method, make certain to call the inherited CanChange method.

Page 68 of 206

Page 69: Express Sidebar

TdxCustomSpinImage.ChangeTdxCustomSpinImage See Also

Generates an OnChange event. procedure Change; virtual; DescriptionOverride this method to perform additional processing when the ImageIndex changes in a spin image control.  Note: While overriding the Change method, make certain to call the inherited Change method.

Page 69 of 206

Page 70: Express Sidebar

TdxCustomSpinImage.DefaultImagesTdxCustomSpinImage See Also property DefaultImages : Boolean; DescriptionUse this property to display the image when the ImageIndex is set to –1 or incorrect.

Page 70 of 206

Page 71: Express Sidebar

TdxCustomSpinImage.ImageHAlignTdxCustomSpinImage See Also

Specifies the horizontal placement of an image within a spin image control. typeTdxHSpinImageAlign = (hsiLeft, hsiCenter, hsiRight); 

property ImageHAlign: TdxHSpinImageAlign; DescriptionThis property is used if the AutoSize and Stretch properties are set to False and the size of an image is smaller than the size of a spin image control.Options include: Value Meaning 

hsiLeft The image appears at the left edge of the spin image control.

hsiCenter The image appears in the center of the spin image control.

hsiRight The image appears at the right edge of the spin image control.

Page 71 of 206

Page 72: Express Sidebar

TdxCustomSpinImage.ImageListTdxCustomSpinImage See Also

Determines the image list used for image display in a spin image control. property ImageList: TCustomImageList; DescriptionIf this property is set, each item in a control may be associated with a bitmap using this image list.

Page 72 of 206

Page 73: Express Sidebar

TdxCustomSpinImage.ImageVAlignTdxCustomSpinImage See Also

Specifies the vertical placement of an image within a spin image control. typeTdxVSpinImageAlign = (vsiTop, vsiCenter, vsiBottom); 

property ImageVAlign : TdxVSpinImageAlign; DescriptionThis property is used if the AutoSize and Stretch properties are set to False and the size of an image is smaller than the size of a spin image control.Options include: Value Meaning 

vsiTop The image appears at the top edge of the spin image control.

vsiCenter The image appears in the center of the spin image control.

vsiBottom The image appears at the bottom edge of the spin image control.

Page 73 of 206

Page 74: Express Sidebar

TdxCustomSpinImage.ItemIndexTdxCustomSpinImage See Also

Specifies the index of a selected item within a spin image item list. property ItemIndex : Integer; DescriptionIf no item is selected, the property value is -1, (-1 is the default value). Users can change an image by pressing the Up, Down, Home or End keys or by using the Up-Down buttons.

Page 74 of 206

Page 75: Express Sidebar

TdxCustomSpinImage.ItemsTdxCustomSpinImage See Also

Provides indexed access to all items in TdxCustomSpinImage. property Items: TdxSpinImageItems;

Page 75 of 206

Page 76: Express Sidebar

TdxCustomSpinImage.OnChangeTdxCustomSpinImage See Also

Occurs when the value of ItemIndex is about to be changed. typeTdxSIChange = procedure(Sender: TObject; ItemIndex: Integer) of object;

property OnChange: TdxSIChange; DescriptionThe ItemIndex parameter represents the new value of the ItemIndex property.

Page 76 of 206

Page 77: Express Sidebar

TdxCustomSpinImage.ReadOnlyTdxCustomSpinImage See Also

Determines whether users can change the ImageIndex value of a spin image control. property ReadOnly : Boolean; DescriptionIf this property is set to True, the spin image control can only display the image associated with the current item. Otherwise, the spin image control can be used to select a particular item.

Page 77 of 206

Page 78: Express Sidebar

TdxCustomSpinImage.StretchTdxCustomSpinImage See Also

Resizes the image specified by ImageList so that it exactly fits to the spin image control. property Stretch : Boolean; DescriptionSet this property to True to draw an image with the size and shape of a spin image control. When the spin image control is resized, the image is also resized. Stretch resizes the height and width of the image independently. Unlike simple scaling, Stretch can distort the image if the spin image control is not of the same shape as the image. Note: To resize the control rather than the image, use the AutoSize property instead.

Page 78 of 206

Page 79: Express Sidebar

TdxCustomSpinImage.UpDownAlignTdxCustomSpinImage See Also

Specifies the position of the up-down control relative to the image control of the spin image. typeTdxUpDownAlign = (udaBottom, udaLeft, udaRight, udaTop); 

property UpDownAlign: TdxUpDownAlign; DescriptionOptions include: Value Meaning 

udaBottom The control appears at the top edge of an image.

udaLeft The control appears at the left edge of an image.

udaRight The control appears at the right edge of an image.

udaTop The control appears at the bottom edge of an image.

Page 79 of 206

Page 80: Express Sidebar

TdxCustomSpinImage.UpDownOrientationTdxCustomSpinImage See Also

Determines the orientation of Up Down arrow buttons typeTdxsiOrientation = (udHorizontal, udVertical); 

property UpDownOrientation: TdxsiOrientation; DescriptionOptions include: Value Meaning 

udHorizontal Arrow buttons point to the left and right and appear side by side.

udVertical Arrow buttons are stacked vertically and point up/down.

Page 80 of 206

Page 81: Express Sidebar

TdxCustomSpinImage.UpDownWidthTdxCustomSpinImage

Determines the width of Up/Down arrows in pixels. property UpDownWidth: Integer; DescriptionDefault value = 16.

Page 81 of 206

Page 82: Express Sidebar

TdxCustomSpinImage.UseDblClickTdxCustomSpinImage

Determines whether the index in a spin image control changes on mouse double click events. property UseDblClick: Boolean; DescriptionSet this property to True to allow end-users to change the index in a spin image control via double clicks. Default value = True.

Page 82 of 206

Page 83: Express Sidebar

TdxSpinImageItem.HintTdxSpinImageItem

Specifies the text string which appears when a user selects a specific item. property Hint: string;

Page 83 of 206

Page 84: Express Sidebar

TdxSpinImageItem.ImageIndexTdxSpinImageItem

Specifies the image from an ImageList to display for a spin image item. property ImageIndex: Integer;

Page 84 of 206

Page 85: Express Sidebar

TdxSpinImageItems.AddTdxSpinImageItems

Adds a new item to a spin image control. function Add: TdxSpinImageItem;

Page 85 of 206

Page 86: Express Sidebar

TdxSpinImageItems.IndexOfTdxSpinImageItems See Also

Returns the index of the first entry in the Items array with the specified Value. function IndexOf(Value : string): Integer;

Page 86 of 206

Page 87: Express Sidebar

TdxSpinImageItems.ItemsTdxSpinImageItems

Provides indexed access to all tree nodes managed by the TdxSpinImageItems object. property Items[Index : Integer]: TdxSpinImageItem;

Page 87 of 206

Page 88: Express Sidebar

TdxSpinImageItem.ValueTdxSpinImageItem

Stores string values as part of the object. property Value: string; DescriptionThe Value property is provided for convenient storage of additional string values for unique application needs. For instance, you can use this property to recognize a clicked object and perform specific operations on the click event of the spin image control.

Page 88 of 206

Page 89: Express Sidebar

TdxSideBar EventsTdxSideBar Legend In TdxSideBar  OnItemClick  OnDeleteItem  OnChangeActiveGroup  OnChangeFocusedItem  OnChangeGroupCaption  OnDeleteItem  OnChangeSelectedItem  OnAfterEdit  OnBeforeEdit  OnDragDropItem

Page 89 of 206

Page 90: Express Sidebar

TdxSideBarPopupMenu EventsTdxSideBarPopupMenu Legend In TdxSideBarPopupMenu  OnAfterClick  OnPopupClose

Page 90 of 206

Page 91: Express Sidebar

TdxStoredSideItem EventsTdxStoredSideItem Legend In TdxStoredSideItem  OnClick

Page 91 of 206

Page 92: Express Sidebar

TdxSideBar MethodsTdxSideBar In TdxSideBar  GetGroupAtPos  GetItemAtPos  GetPopupGroup  IsGroupEditing  IsItemEditing  IsEditing  EditGroup  EditItem  EndEdit  GetSmallImages  GetLargeImages  LoadFromRegistry  SaveToRegistry  XPBackgroundColor

Page 92 of 206

Page 93: Express Sidebar

TdxSideBarItem MethodsTdxSideBarItem In TdxSideBarItem  Assign  MakeVisible

Page 93 of 206

Page 94: Express Sidebar

TdxSideBarItems MethodsTdxSideBarItems In TdxSideBarItems  Add

Page 94 of 206

Page 95: Express Sidebar

TdxSideBarStore MethodsTdxSideBarStore In TdxSideBarStore  GetCountByCategory  GetItemByCategory  GetItemsByCategory  Customize

Page 95 of 206

Page 96: Express Sidebar

TdxSideGroup MethodsTdxSideGroup In TdxSideGroup  Assign  MakeActive  GetVisibleCount

Page 96 of 206

Page 97: Express Sidebar

TdxSideGroups MethodsTdxSideGroups In TdxSideGroups  Add

Page 97 of 206

Page 98: Express Sidebar

TdxSideBar PropertiesTdxSideBar Legend In TdxSideBar  ActiveGroup   EditControl   EditingGroup   EditingItem   FocusedItem   GroupCount   IsMakingUpdate  SelectedItem  BkGround  BkPicture  CanSelected  GroupFont  Groups  GroupHeightOffSet  ActiveGroupIndex  GroupPopupMenu  ItemFont  ItemPopupMenu  LargeImages  PaintStyle  SmallImages  ScrollDelay  SpaceHeight  Store  TransparentImages  RegistryPath  StoreInRegistry

Page 98 of 206

Page 99: Express Sidebar

TdxSideBarItem PropertiesTdxSideBarItem Legend In TdxSideBarItem  Caption  CustomData  Enabled   Group  Hint  IsDefault  ItemObject  LargeImage  SmallImage  StoredItem  Tag   Visible

Page 99 of 206

Page 100: Express Sidebar

TdxSideBarItems PropertiesTdxSideBarItems In TdxSideBarItems  Items

Page 100 of 206

Page 101: Express Sidebar

TdxSideBarPopupMenu PropertiesTdxSideBarPopupMenu Legend In TdxSideBarPopupMenu  Options

Page 101 of 206

Page 102: Express Sidebar

TdxSideBarStore PropertiesTdxSideBarStore Legend In TdxSideBarStore  Categories   Count  DefaultLargeImage  DefaultSmallImage   Items  LargeImages  SmallImages   SideBarCount   SideBars

Page 102 of 206

Page 103: Express Sidebar

TdxSideGroup PropertiesTdxSideGroup Legend In TdxSideGroup   Active  Caption  ItemCount  IconType  Items   TopVisibleItem

Page 103 of 206

Page 104: Express Sidebar

TdxSideGroups PropertiesTdxSideGroups In TdxSideGroups  Items

Page 104 of 206

Page 105: Express Sidebar

TdxStoredSideItem PropertiesTdxStoredSideItem Legend In TdxStoredSideItem  Caption  Category  Hint  LargeImage  PopupMenu  SmallImage   Store

Page 105 of 206

Page 106: Express Sidebar

TdxSideBar.ActiveGroupTdxSideBar See Also

Represents the group whose items are currently displayed within TdxSideBar. property ActiveGroup: TdxSideGroup; DescriptionUse ActiveGroup to determine which group is selected by a user. Users select groups by clicking their mouse on a group button. Set ActiveGroup to display the items within a group. Only one group may be active at any given time. RunTime OnlyExampleThis example allows users to select the ActiveGroup property by using a ComboBox item. During form creation, the Combo Box control is loaded with captions of each of the groups, as well as instance pointers to the corresponding group. When the user selects the Combo Box item, the associated TdxSideGroup object contained in the Combo Box Objects array is used to set the ActiveGroup property. procedure TForm1.FormCreate(Sender: TObject);varI: integer; beginfor I := 0 to dxSideBar1.GroupCount - 1 do ComboBox1.Items.AddObject(dxSideBar1.Groups[I].Caption, dxSideBar1.Groups[I]); if(dxSideBar1.GroupCount > 0) thenComboBox1.ItemIndex := 0; end; procedure TForm1.ComboBox1Change(Sender: TObject);beginif (Sender is TComboBox) thenwith (Sender as TComboBox) dodxSideBar1.ActiveGroup := TdxSideGroup(Items.Objects[ItemIndex]); end;

Page 106 of 206

Page 107: Express Sidebar

TdxSideBar.ActiveGroupIndexTdxSideBar See Also

Represents the index of a group whose items are currently displayed in TdxSideBar. property ActiveGroupIndex: Integer; DescriptionUse ActiveGroupIndex to determine the number of a group currently selected by a user. A user selects a group by clicking the mouse on the group's button. Set ActiveGroupIndex to display a group's items whose indexes equal ActiveGroupIndex. Example:This example sets ActiveGroup to the first or last group in the Groups list of TdxSideBar. procedure Form1.Button1Click(Sender : TObject);beginif(dxSideBar1.ActiveGroupIndex = 0) thendxSideBar1.ActiveGroupIndex := dxSideBar1.GroupCount – 1  else dxSideBar1.ActiveGroupIndex := 0;end;

Page 107 of 206

Page 108: Express Sidebar

TdxSideBar.BkGroundTdxSideBar See Also

Specifies the background color of a TdxSideBar control. typeTdxSideBarFillStyle = (bfsNone, bfsHorz, bfsVert); 

TdxSideBarBackGround = class(TPersistent);publishedproperty BeginColor: TColor;property EndColor: TColor;property FillStyle: TdxSideBarFillStyle;end;

property BkGround : TdxSideBarBackGround; DescriptionThe following fill styles are available: 

 Note: Use the BkPicture property to paint the picture as background of the control.

bfsNone There is no background color.

bfsHorz Background color changes horizontally from BeginColor to EndColor.

bfsVert Background color changes vertically from BeginColor to EndColor.

Page 108 of 206

Page 109: Express Sidebar

TdxSideBar.BkPictureTdxSideBar See Also

Specifies the background picture of a TdxSideBar control. property BkPicture: TPicture; Note: Use BkGround to change the background color of the control.

Page 109 of 206

Page 110: Express Sidebar

TdxSideBar.CanSelectedTdxSideBar See Also

Determines whether a selected item (the last shortcut pressed with a mouse) remains depressed once focus moves away from an item. property CanSelected : Boolean; DescriptionSet this property to True to force a selected item to remain depressed once focus moves away from an item. The default value of the CanSelected property is False.

Page 110 of 206

Page 111: Express Sidebar

TdxSideBar.EditControlTdxSideBar See Also

Represents the edit control used by TdxSideBar to edit a group or a shortcut. property EditControl : TEdit; DescriptionUse this property to access an instance of the edit control used by TdxSideBar to edit a group or shortcut. It is created before and disposed of after editing. Use OnBeforeEdit to perform special actions on this control, e.g. to assign the OnKeyDown or OnKeyPress handlers. ReadOnly Property

Page 111 of 206

Page 112: Express Sidebar

TdxSideBar.EditGroupTdxSideBar See Also

Begins editing of a TdxSideGroup. procedure EditGroup(Group: TdxSideGroup); DescriptionUse EditGroup to immediately begin editing a particular group. The Group parameter represents the group to be edited.  Example:This code will edit a group on which a group popup menu appears. varPopupMenuGroup : TdxSideGroup;  procedure TForm1.GroupPopupMenuPopup(Sender: TObject);beginPopupMenuGroup := dxSideBar1.GetPopupGroup; end; procedure TForm1.PMIGroupEditClick(Sender: TObject);begindxSideBar1.EditGroup(PopupMenuGroup); end;

Page 112 of 206

Page 113: Express Sidebar

TdxSideBar.EditingGroupTdxSideBar See Also

Represents the current editing group. property EditingGroup : TdxSideGroup; DescriptionUse this property to access the current editing group. If a user is not editing a group, it returns nil.  ReadOnly Property

Page 113 of 206

Page 114: Express Sidebar

TdxSideBar.EditingItemTdxSideBar See Also

Provides access to the item being edited. property EditingItem : TdxSideBarItem;

Page 114 of 206

Page 115: Express Sidebar

TdxSideBar.EditItemTdxSideBar See Also

Begins editing of a TdxSideBarItem. procedure EditItem(Item : TdxSideBarItem); DescriptionUse EditItem to immediately begin editing a particular item. The Item parameter represents the item to be edited.  Note: EditItem makes the item visible if it was invisible and changes the ActiveGroup property to make the group to which the item belongs Active. Example:This code will edit the item on which an Item Popup menu appears. VarPopupMenuItem : TdxSideBarItem;  procedure TForm1.ItemPopupMenuPopup(Sender: TObject);beginPopupMenuItem := TdxSideBar1.FocusedItem; end;

procedure TForm1.PMIItemEditClick(Sender: TObject);beginTdxSideBarBar1.EditItem(PopupMenuItem); end;

Page 115 of 206

Page 116: Express Sidebar

TdxSideBar.EndEditTdxSideBar

Immediately cancels editing of a TdxSideBar group or label. procedure EndEdit(Accept : Boolean);

Page 116 of 206

Page 117: Express Sidebar

TdxSideBar.FocusedItemTdxSideBar See Also

Represents an item with current focus. property FocusedItem : TdxSideBarItem; DescriptionRead FocusedItem to determine the item selected by a user. A user selects an item by moving the mouse over the group region. If no items are selected, FocusedItem is nil. ReadOnly Property ExampleThis example determines which item is selected with the mouse and displays its caption as a form’s caption.  procedure TForm1.dxSideBar1ChangeFocusedItem (Sender: TObject);beginif (dxSideBar1.FocusedItem <> nil) thenCaption := dxSideBar1.FocusedItem.Caption else Caption := ’’; end;

Page 117 of 206

Page 118: Express Sidebar

TdxSideBar.GetGroupAtPosTdxSideBar See Also

Returns the group located at a specified position within TdxSideBar. TPoint = recordX: Longint; Y: Longint; end;

function GetGroupAtPos(p: TPoint): TdxSideGroup; DescriptionUse GetGroupAtPos when you wish to know which group is at a specified location within TdxSideBar. Specify the position in client coordinates as the value of the p parameter; p can be anywhere within the boundaries of a group. If there is no group at a specified position, GetGroupAtPos returns nil.

Page 118 of 206

Page 119: Express Sidebar

TdxSideBar.GetItemAtPosTdxSideBar See Also

Returns an item located at a specified position within TdxSideBar. TPoint = recordX: Longint; Y: Longint; end;

function GetItemAtPos(p: TPoint): TdxSideBarItem; DescriptionUse GetItemAtPos when you wish to discover which item is at a specified location within TdxSideBar. Specify the position in client coordinates as the value of the p parameter; p can be anywhere within the boundaries of an item. If there is no item at a specified position, GetItemAtPos returns nil. Note: To retrieve an item from current cursor position, use the FocusedItem property.

Page 119 of 206

Page 120: Express Sidebar

TdxSideBar.GetLargeImagesTdxSideBar See Also

Returns the image list used for large images in a TdxSideBar component. function GetLargeImages: TCustomImageList; DescriptionIf a non null value, it returns the value of the TdxSideBar.LargeImages or TdxSideBarStore.LargeImages property.

Page 120 of 206

Page 121: Express Sidebar

TdxSideBar.GetPopupGroupTdxSideBar See Also

Determines the currently selected group. function GetPopupGroup: TdxSideGroup; DescriptionUse GetPopupGroup to determine the currently selected group. If the mouse is in the "item’s" area, the function returns ActiveGroup. Use the GetPopupGroup method and the OnPopup event of the Group popup menu to determine the group on which a popup menu appears.

Page 121 of 206

Page 122: Express Sidebar

TdxSideBar.GetSmallImagesTdxSideBar See Also

Returns the image list used for small images in a TdxSideBar component. function GetSmallImages: TCustomImageList; DescriptionIf a non null value, it returns the value of the TdxSideBar.SmallImages or TdxSideBarStore.SmallImages property.

Page 122 of 206

Page 123: Express Sidebar

TdxSideBar.GroupCountTdxSideBar See Also

Represents the number of groups in a TdxSideBar object. property GroupCount : Integer;

 DescriptionUse GroupCount to determine the number of groups listed by the Groups property. ReadOnly Property

Page 123 of 206

Page 124: Express Sidebar

TdxSideBar.GroupFontTdxSideBar See Also

Represents Caption font attributes for a Group’s button.  property GroupFont: TFont; DescriptionTo change font, specify a new TFont object. To modify a font, change the value of Color, Height, Name, Pitch, Size, or Style properties of the TFont object.

Page 124 of 206

Page 125: Express Sidebar

TdxSideBar.GroupHeightOffSetTdxSideBar See Also

Specifies the height of a group. property GroupHeightOffSet : Integer; DescriptionUse GroupHeightOffSet to specify the height of a group. [group height] = [group font height] + 2 * GroupHeightOffSet. If 0, group height equals [group font height] + 4 for standard paint style and [group font height] + 6 for flat paint style. Default value = 0.

Page 125 of 206

Page 126: Express Sidebar

TdxSideBar.GroupPopupMenuTdxSideBar See Also

Identifies the pop-up menu associated with groups. property GroupPopupMenu: TPopupMenu; DescriptionAssign a value to GroupPopupMenu to call a pop-up menu when a user selects a group and presses the right mouse button within that group. Use the GetPopupGroup method and the OnPopup event of the popup menu to determine the group on which the popup menu appears.Example:This example determines the group wherein a popup menu appears. procedure TForm1.PopupMenu1Popup(Sender: TObject);beginShowMessage(dxSideBar1.GetPopupGroup.Caption); end;

Page 126 of 206

Page 127: Express Sidebar

TdxSideBar.GroupsTdxSideBar See Also

Represent an indexed array of all groups in TdxSideBar. property Groups: TdxSideGroups; DescriptionUse this property to directly access a particular group in a TdxSideBar control. For example, use Groups to change IconType of individual pages in TdxSideBar. Specify a group to access by using Index; where 0 specifies the first group, 1 specifies the second group, etc. Each group is a TdxSideGroup object. ExampleClicking Button1 changes IconType of every other group to dxsgSmallIcon. procedure TForm1.Button1Click(Sender: TObject);VarI : Integer;beginfor I := 0 to dxSideBar1.GroupCount – 1 do if(I mod 2 = 1) thendxSideBar1.Groups[I].IconType := dxsgSmallIcon;end;

Page 127 of 206

Page 128: Express Sidebar

TdxSideBar.IsEditingTdxSideBar See Also

Determines whether an item or group of TdxSideBar is currently being edited. function IsEditing : Boolean; DescriptionUse IsEditing to determine if an item or group of TdxSideBar is currently being edited.If any item or group is currently being edited, IsEditing returns True, otherwise returns False. Note: Only one group or item can be edited at any given point in time. ExampleThis code will prevent a form from closing when a user presses Enter on an item being edited or on the group caption of TdxSideBar. procedure TForm1.Button1Click(Sender: TObject);beginif(Bar.IsEditing) then beginModalResult := mrNone; Bar.EndEdit(True); end;end;

Page 128 of 206

Page 129: Express Sidebar

TdxSideBar.IsGroupEditingTdxSideBar See Also

Determines whether a group of TdxSideBar is currently being edited. function IsGroupEditing : Boolean; DescriptionUse IsGroupEditing to determine if a TdxSideGroup is currently being edited.If a group is being edited IsGroupEditing returns True, otherwise returns False. Note: Only one group or item can be edited at any given point in time.

Page 129 of 206

Page 130: Express Sidebar

TdxSideBar.IsItemEditingTdxSideBar See Also

Determines whether an item of TdxSideBar is currently being edited. function IsItemEditing : Boolean; DescriptionUse IsItemEditing to determine if a TdxSideBarItem is currently being edited.If any item is currently being edited, IsItemEditing returns True, otherwise returns False. Note: Only one group or item can be edited at any given point in time.

Page 130 of 206

Page 131: Express Sidebar

TdxSideBar.IsMakingUpdateTdxSideBar

Determines whether a TdxSideBar control is locked and not repainted. property IsMakingUpdate : Boolean; DescriptionSet this property to True, to prevent repaint operations of a TdxSideBar control. Use this property when adding/deleting groups and items in TdxSideBar. Note: Make certain to set IsMakingUpdate to False when you finish updating the control. Use a try – finally construction.

Page 131 of 206

Page 132: Express Sidebar

TdxSideBarItem.AssignTdxSideBarItem

Copies the contents of the source item to the current item. procedure Assign(Source: TPersistent); DescriptionAssign copies StoredItem, Caption, CustomData, Hint, IsDefault, LargeImage, SmallImage and Tag properties from the source object to an item.

Page 132 of 206

Page 133: Express Sidebar

TdxSideBarItem.CaptionTdxSideBarItem See Also

Specifies the text which identifies an item to a user. property Caption: string; DescriptionIf IsDefault is equal to True and StoredItem is not nil, Caption is not stored in the *.dfm file and its value is retrieved from the TdxStoredSideItem.Caption property.

Page 133 of 206

Page 134: Express Sidebar

TdxSideBarItem.CustomDataTdxSideBarItem See Also

Stores a string value as a part of the object. property CustomData: string; DescriptionThis property is provided for convenience of storing an additional string value in the application for special needs. For example, use the Custom property to recognize the object that has been clicked and perform a particular operation on the click event of the TdxSideBar control or associated TdxStoredSideItem component.

Page 134 of 206

Page 135: Express Sidebar

TdxSideBarItem.EnabledTdxSideBarItem

Controls whether a sidebar item responds to mouse events. property Enabled : Boolean; DescriptionTo disable a sidebar item, set Enabled to False. Disabled sidebar item draws its caption in gray and ignores mouse events. Users may only drag & drop the disabled sidebar item (if DragMode is set to dmAutomatic).To re-enable a sidebar item, set Enabled to True. Default value = True.

Page 135 of 206

Page 136: Express Sidebar

TdxSideBar.ItemFontTdxSideBar See Also

Represents font attributes of an item’s label.  property ItemFont : TFont; DescriptionTo modify a Font, change the values of the Color, Height, Name, Pitch, Size, or Style properties of the TFont object.

Page 136 of 206

Page 137: Express Sidebar

TdxSideBarItem.GroupTdxSideBarItem See Also

Determines the group to which a sidebar item belongs. property Group : TdxSideGroup; DescriptionRead Group to determine the group to which a sidebar item belongs. Read Only

Page 137 of 206

Page 138: Express Sidebar

TdxSideBarItem.HintTdxSideBarItem See Also

Specifies the hint for a sidebar item. property Hint : string; DescriptionIf IsDefault is equal to True and StoredItem is not nil, Hint is not stored in the *.dfm file and its value is retrieved from the TdxStoredSideItem.Hint property.

Page 138 of 206

Page 139: Express Sidebar

TdxSideBarItem.IsDefaultTdxSideBarItem See Also

Determines whether the Caption, Hint, LargeImage and SmallImage properties of an item are the same as the TdxStoredSideItem.Caption, TdxStoredSideItem.Hint, TdxStoredSideItem.LargeImage and TdxStoredSideItem.SmallImage properties. property IsDefault : Boolean; DescriptionSet this property to True to reset these properties to their default values.

Page 139 of 206

Page 140: Express Sidebar

TdxSideBarItem.ItemObjectTdxSideBarItem See Also

Contains a pointer to an application-defined object associated with a sidebar item. property ItemObject: TObject; DescriptionThis property allows applications to quickly access information about an entity represented by a sidebar item.

Page 140 of 206

Page 141: Express Sidebar

TdxSideBarItem.LargeImageTdxSideBarItem See Also

Determines the large image displayed for a given item. property LargeImage : Integer; DescriptionSet LargeImage to determine the image displayed as a large icon for a specific item when IconType of a group equals dxsgLargeIcon.

Page 141 of 206

Page 142: Express Sidebar

TdxSideBarItem.MakeVisibleTdxSideBarItem See Also

Makes an item visible. function MakeVisible : Boolean; DescriptionCall this function to make the item visible. If the item’s group is inactive, MakeVisible activates it.

Page 142 of 206

Page 143: Express Sidebar

TdxSideBar.ItemPopupMenuTdxSideBar See Also

Identifies the pop-up menu associated with items. property ItemPopupMenu : TPopupMenu; DescriptionAssign a value to ItemPopupMenu to call a pop-up menu when a user selects an item and presses the right mouse button. Use FocusedItem and the OnPopup event of the popup menu to determine the item on which the popup menu appears. Example:This example determines the item on which a popup menu appears. procedure TForm1.PopupMenu1Popup(Sender: TObject);beginif (dxSideBar1.FocusedItem <> nil) //the focused item may be nilShowMessage(dxSideBar1.FocusedItem.Caption); end;

Page 143 of 206

Page 144: Express Sidebar

TdxSideBarItems.AddTdxSideBarItems

Creates a TdxSideBarItem instance and adds it to the Items array. function Add: TdxSideBarItem; DescriptionAt design time, use the dxSidebar component editor to add items.

Page 144 of 206

Page 145: Express Sidebar

TdxSideBarItems.ItemsTdxSideBarItems See Also

Provides indexed access to TdxSideBarItems in the collection. property Items[Index : Integer]: TdxSideBarItem; DescriptionThe Index parameter corresponds to the TdxSideBarItem.Index property. It represents the position of the sidebar item in the group object.

Page 145 of 206

Page 146: Express Sidebar

TdxSideBarItem.SmallImageTdxSideBarItem See Also

Determines the small image displayed for a given item. property SmallImage : Integer; DescriptionSet SmallImage to determine the image displayed as a small icon for a specific item when IconType of a group equals dxsgSmallIcon.

Page 146 of 206

Page 147: Express Sidebar

TdxSideBarItem.StoredItemTdxSideBarItem See Also

Specifies a TdxStoredSideItem component for the current item. property StoredItem: TdxStoredSideItem; DescriptionThe behavior of TdxSideBarItem depends on corresponding TdxStoredSideItem components:Large and Small images, Item Popup Menu, Caption properties and the OnClick event.

Page 147 of 206

Page 148: Express Sidebar

TdxSideBarItem.TagTdxSideBarItem See Also

Stores an integer value as a part of the object. property Tag: Longint; DescriptionThis property is provided for the convenience of storing an additional integer value or pointer information for an application’s specific needs.

Page 148 of 206

Page 149: Express Sidebar

TdxSideBarItem.VisibleTdxSideBarItem See Also

Determines whether an item is currently displayed in the ‘item area’ of a TdxSideBar control.  property Visible : Boolean; ReadOnly Property

Page 149 of 206

Page 150: Express Sidebar

TdxSideBar.LargeImagesTdxSideBar See Also

Provides a list of images to display for each TdxSideBar item when active group’s IconType equals dxsgLargeIcon.  property LargeImages: TCustomImageList; DescriptionSet this property to specify bitmaps to display above an item’s caption in TdxSideBar when the active group’s IconType equals dxsgLargeIcon. Use the TdxSideBar component editor to associate images with specific sidebar items. Note: If you use the TdxSideBarStore component (the TdxSideBar.Store property for runtime customization and restoration of control properties), you must assign an image list to TdxSideBarStore.LargeImages and leave the TdxSideBar.LargeImages property empty.

Page 150 of 206

Page 151: Express Sidebar

TdxSideBar.LoadFromRegistryTdxSideBar See Also

Restores the configuration of a TdxSideBar control (items, groups) from the registry using the ARegistryPath path.  procedure LoadFromRegistry(ARegistryPath: string); DescriptionSet the RegistryPath property and activate the StoreInRegistry property to allow the TdxSideBar to save and restore its configuration to/from the registry using RegistryPath automatically when creating (loading data from the stream) and destroying the control.

Page 151 of 206

Page 152: Express Sidebar

TdxSideBar.OnAfterEditTdxSideBar See Also

Occurs after a user completes editing a shortcut or a group. property OnAfterEdit: TNotifyEvent;

Page 152 of 206

Page 153: Express Sidebar

TdxSideBar.OnBeforeEditTdxSideBar See Also

Occurs before a user begins editing a shortcut or a group. property OnBeforeEdit: TNotifyEvent; DescriptionUse OnBeforeEdit to perform specific actions using EditControl, for instance to assign the OnKeyDown or OnKeyPress handler events.

Page 153 of 206

Page 154: Express Sidebar

TdxSideBar.OnChangeActiveGroupTdxSideBar See Also

Occurs immediately after a new group is made active. property OnChangeActiveGroup: TNotifyEvent; DescriptionWrite an OnChangeActiveGroup event handler to perform specific actions immediately after the active group is changed. ExampleThis code fills a listbox with the item captions of the active group. procedure TForm1.dxSideBar1ChangeActiveGroup(Sender: TObject);varI : Integer; beginListBox1.Items.Clear; if(dxSideBar1.ActiveGroup <> Nil) thenfor I := 0 to dxSideBar1.ActiveGroup.ItemCount – 1 do ListBox1.Items.Add(dxSideBar1.ActiveGroup.Items[I].Caption); end;

Page 154 of 206

Page 155: Express Sidebar

TdxSideBar.OnChangeFocusedItemTdxSideBar See Also

Occurs immediately after the FocusedItem property is changed. property OnChangeFocusedItem: TNotifyEvent;

Page 155 of 206

Page 156: Express Sidebar

TdxSideBar.OnChangeGroupCaptionTdxSideBar See Also

Occurs immediately after the Caption of a particular group is changed. typeTdxSideBarChangeGroupCaptionEvent = procedure(Sender: TObject; Group: TdxSideGroup) of object;

property OnChangeGroupCaption : TdxSideBarChangeGroupCaptionEvent; DescriptionThe Group parameter is the group whose caption has been changed.

Page 156 of 206

Page 157: Express Sidebar

TdxSideBar.OnChangeSelectedItemTdxSideBar See Also

Occurs immediately after the SelectedItem property is changed. property OnChangeFocusedItem: TNotifyEvent;

Page 157 of 206

Page 158: Express Sidebar

TdxSideBar.OnDeleteItemTdxSideBar See Also

Occurs before a TdxSideBarItem is removed. typeTdxSideBarDeleteItemEvent = procedure(Sender: TObject; Item: TdxSideBarItem) of object;

property OnDeleteItem : TdxSideBarDeleteItemEvent; DescriptionThe Item parameter represents the shortcut to be removed.

Page 158 of 206

Page 159: Express Sidebar

TdxSideBar.OnDragDropItemTdxSideBar See Also

Occurs before drag & drop operations are finished successfully and a new shortcut is added or shortcut position is changed.  type

TdxSideBarDragDropItemEvent = procedure(Sender: TObject; Source, Target: TdxSideBarItem; IsCopy: Boolean) of object;

property OnDragDropItem: TdxSideBarDragDropItemEvent; DescriptionWrite an OnDragDropItem event handler to perform specific actions before drag & drop operations are finished successfully and a new shortcut is added or shortcut position is changed. The Source parameter is the drag & drop shortcut, Target is the newly created shortcut. The IsCopy parameter determines whether the user has pressed the CTRL key.

Page 159 of 206

Page 160: Express Sidebar

TdxSideBar.OnItemClickTdxSideBar See Also

Occurs when a user clicks a TdxSideBarItem. typeTdxSideBarItemClickEvent = procedure(Sender: TObject; Item: TdxSideBarItem) of object;

property OnItemClick : TdxSideBarItemClickEvent;ExampleIn this example, Sidebar items are distinguished by the Tag property. procedure TForm1.dxSideBar1ItemClick(Sender: TObject;Item: TdxSideBarItem); begincase Item.Tag of0: ShowMessage('You have chosen the side item with Tag=0'); 10: ShowMessage('Hello'); else ShowMessage('Unknown sidebar item. I''m Sorry, I don''t implement any action on this click'); end;end;

Page 160 of 206

Page 161: Express Sidebar

TdxSideBar.PaintStyleTdxSideBar See Also

Determines the paint style of a TdxSideBar control. typeTdxsbPaintStyle = (sbpsStandard, sbpsFlat, sbpsXP, sbpsW2K); 

property PaintStyle : TdxsbPaintStyle; DescriptionThe table below lists values available for the PaintStyle property, provides their descriptions and examples.  Value Description Example sbpsStandard Group buttons are painted with the standard 3D look.

Once pressed, Group buttons are not depressed.Once pressed, Item buttons are depressed.

SbpsFlat Group buttons are painted with a flatter look.

Once pressed, Group buttons are depressed.Once pressed, Item buttons are depressed.

SbpsXP Group buttons are painted with a flatter look.

Once pressed, Group buttons are depressed.Item buttons are highlighted like MS Office XP when the cursor is above an Item button.

sbpsW2K Group buttons are painted with a flatter look.

Once pressed, Group buttons and Item buttons are depressed.Group buttons and Item buttons are painted raised when hot-tracked.

Page 161 of 206

Page 162: Express Sidebar

TdxSideBarPopupMenu.OnAfterClickTdxSideBarPopupMenu

Occurs after a user clicks a popup menu item. property OnAfterClick: TNotifyEvent;

Page 162 of 206

Page 163: Express Sidebar

TdxSideBarPopupMenu.OnPopupCloseTdxSideBarPopupMenu

Occurs after closing a popup menu. property OnPopupClose: TNotifyEvent;

Page 163 of 206

Page 164: Express Sidebar

TdxSideBarPopupMenu.OptionsTdxSideBarPopupMenu See Also

Specifies the menu item visibility in all TdxSideBar popup menus. typeTdxSideBarPopupMenuOption = (sbmIconType, sbmAddGroup, sbmRemoveGroup, sbmCustomize, sbmRenameGroup, sbmRenameItem, sbmRemoveItem); 

TdxSideBarPopupMenuOptions = set of TdxSideBarPopupMenuOption;property Options : TdxSideBarPopupMenuOptions; DescriptionOptions include: Value Meaning sbmIconType Both ‘Large Icon’ and ‘Small Icon’ menu items are included. A user

can change a group’s IconType by selecting one of these items.

sbmAddGroup The ‘Add Group’ menu item is included. A user can add a group by selecting this item.

sbmRemoveGroup The ‘Remove Group’ menu item is included. A user can remove the current group by selecting this item.

sbmCustomize The ‘Customize’ menu item is included. A user can activate the customization form by selecting this item.

sbmRenameGroup The ‘Rename Group’ menu item is included. A user can rename the current group by selecting this item.

sbmRenameItem The ‘Rename Item’ menu item is included. A user can rename the current TdxSideBarItem by selecting this item.

sbmRemoveItem The ‘Remove Item’ menu item is included. A user can remove the current TdxSideBarItem by selecting this item.

Page 164 of 206

Page 165: Express Sidebar

TdxSideBar.RegistryPathTdxSideBar See Also

Specifies the registry path wherein to save TdxSideBar configurations when the StoreInRegistry property equals True.  property RegistryPath : String; DescriptionUse RegistryPath to specify a registry path for saving configurations of TdxSideBar. Activate the StoreInRegistry property to allow the saving and restoration to and from the registry for TdxSideBar.

Page 165 of 206

Page 166: Express Sidebar

TdxSideBar.SaveToRegistryTdxSideBar See Also

Save the configuration of a TdxSideBar control (items, groups) to the registry using the ARegistryPath path.  procedure SaveToRegistry(ARegistryPath: string); DescriptionSet the RegistryPath property and activate the StoreInRegistry property to allow saving and restoration of a TdxSideBar’s configuration automatically to/from the registry.

Page 166 of 206

Page 167: Express Sidebar

TdxSideBar.ScrollDelayTdxSideBar

Determines, in milliseconds, the delay invoked when scrolling items in an active group when a user presses the up-down scroll buttons or performs Drag & Drop operations. property ScrollDelay : Integer; DescriptionUse this property to determine the delay in milliseconds invoked when scrolling items in an active group. Default value = 300 (0.3 second).

Page 167 of 206

Page 168: Express Sidebar

TdxSideBar.SelectedItemTdxSideBar See Also

Specifies a selected item (i.e. the last shortcut clicked with a mouse). property SelectedItem: TdxSideBarItem; DescriptionUse SelectedItem to determine the last shortcut clicked with a mouse. SelectedItem remains as a flat button. If CanSelected is False, then SelectedItem is always nil. You can also change SelectedItem programmatically.

Page 168 of 206

Page 169: Express Sidebar

TdxSideBar.SmallImagesTdxSideBar See Also

Provides a list of icon images for each item in TdxSideBar when an active group’s IconType equals dxsgSmallIcon.  property SmallImages: TCustomImageList; DescriptionSet this property to specify bitmaps to use above an item’s caption in TdxSideBar. Use the TdxSideBar component editor to associate images with sidebar items. Note: If you use the TdxSideBarStore component (TdxSideBar.Store property for runtime customization and restoration of control properties) you must assign an image list to TdxSideBarStore.SmallImages and leave the TdxSideBar.SmallImages property empty.

Page 169 of 206

Page 170: Express Sidebar

TdxSideBar.SpaceHeightTdxSideBar

Determines the distance in pixels between items. property SpaceHeight : Integer; DescriptionUse SpaceHeight to determine the distance in pixels between items. Default value = 7

Page 170 of 206

Page 171: Express Sidebar

TdxSideBarStore.CategoriesTdxSideBarStore See Also

Represents a category name. property Categories: TStrings; DescriptionTdxSideBarStore contains TdxStoredSideItem components and divides them into categories.Use Categories to add, insert, delete, and move categories. Categories must always contain at least one category.  Note: You cannot delete a category which contains TdxStoredSideItem components.

Page 171 of 206

Page 172: Express Sidebar

TdxSideBarStore.CountTdxSideBarStore See Also

Count is the number of TdxStoredSideItems in a TdxSideBarStore object. property Count: Integer; DescriptionUse Count to determine the number of TdxStoredSideItems listed in the Items property. ReadOnly Property ExampleThis code example fills a listbox with the captions of TdxStoredSideItems. procedure TForm1.Form1Create(Sender : TObject);varI : Integer; beginfor I := 0 to dxSidebarStore1.Count – 1 do ListBox1.Items.Add(dxSidebarStore1.Items[I].Caption); end;

Page 172 of 206

Page 173: Express Sidebar

TdxSideBarStore.CustomizeTdxSideBarStore

Activates the ExpressSideBar Customizing form. procedure Customize;

Page 173 of 206

Page 174: Express Sidebar

TdxSideBarStore.DefaultLargeImageTdxSideBarStore See Also

Used to display the image of a TdxSideBarItem in LargeIcon view if the value of the LargeImage property of a corresponding TdxStoredSideItem is –1 or incorrect.  property DefaultLargeImage: Integer; DescriptionDefault value = –1

Page 174 of 206

Page 175: Express Sidebar

TdxSideBarStore.DefaultSmallImageTdxSideBarStore See Also

Used to display the image of a TdxSideBarItem in SmallIcon view if the value of the SmallImage property of a corresponding TdxStoredSideItem is –1 or incorrect.  property DefaultSmallImage: Integer; DescriptionDefault value = –1

Page 175 of 206

Page 176: Express Sidebar

TdxSideBarStore.GetCountByCategoryTdxSideBarStore See Also

Determines the number of TdxStoredSideItem which belong to a particular category. function GetCountByCategory(St: string): Integer; DescriptionUse this function to determine the number of TdxStoredSideItems that belong to a particular category. The St parameter is the name of the category. ExampleThis code example fills a combobox with the names of categories and a listbox with the captions of TdxStoredSideItem belonging to the category selected in the combobox. procedure TForm1.Form1Create(Sender : TObject);varI : Integer; beginfor I := 0 to dxSideBarStore1.Categories.Count – 1 do ComboBox1.Items.Add(dxSideBarStore1.Categories); ComboBox1.ItemIndex := 0; ComboBox1Click(ComboBox1); end;

 

procedure TForm1.ComboBox1Click(Sender: TObject);varList : TList; I : Integer; item : TdxStoredSideItem; beginListBox1.Items.Clear; List := TList.Create; dxSideBarStore1.GetItemsByCategory(ComboBox1.Items[ComboBox1.ItemIndex], List);for I := 0 to List.Count - 1 do begin Item := TdxStoredSideItem(List[I]); ListBox1.Items.Add(Item.Caption) end;List.Free; end;

Page 176 of 206

Page 177: Express Sidebar

TdxSideBarStore.GetItemByCategoryTdxSideBarStore See Also

Returns a particular TdxStoredSideItem from a TdxSideBarStore. function GetItemByCategory(St: string; Index: Integer): TdxStoredSideItem; DescriptionThe St parameter is the name of the category and Index is the number of the item in this category (the range is from 0 to GetCountByCategory - 1).

Page 177 of 206

Page 178: Express Sidebar

TdxSideBarStore.GetItemsByCategoryTdxSideBarStore See Also

Retrieves a list of TdxStoredSideItem components which belong to a particular category. function GetItemsByCategory(St: string; List: TList): Integer; DescriptionCall this function to retrieve a list of TdxStoredSideItem components which belong to a particular category. The list is returned as the List parameter. The function returns the number of items in this list.

Page 178 of 206

Page 179: Express Sidebar

TdxSideBar.StoreInRegistryTdxSideBar See Also

Determines whether the configurations of TdxSideBar are stored in the registry. property StoreInRegistry : Boolean; DescriptionSet the RegistryPath property and activate the StoreInRegistry property to allow a TdxSideBar to save and restore its configuration to/from the registry using RegistryPath.

Page 179 of 206

Page 180: Express Sidebar

TdxSideBarStore.ItemsTdxSideBarStore See Also

Provides indexed access to TdxStoredSideItems in a TdxSideBarStore object. property Items[Index : Integer]: TdxStoredSideItem; DescriptionUse this property to access a particular Item in a TdxSideBarStore component. Specify the item to access using Index, where 0 specifies the first item, 1 specifies the second item, etc. Each item is a TdxStoredSideItem component. ReadOnly Property

Page 180 of 206

Page 181: Express Sidebar

TdxSideBarStore.LargeImagesTdxSideBarStore See Also

Provides a list of icons for each item in TdxSideBar where the IconType of an active group equals dxsgLargeIcon. property LargeImages: TCustomImageList; DescriptionEach TdxStoredSideItem in TdxSideBarStore may be associated with a large bitmap in an image list by setting its LargeImage property.

Page 181 of 206

Page 182: Express Sidebar

TdxSideBarStore.SideBarCountTdxSideBarStore See Also

Represents the number of TdxSideBars having the Store property equal to the current TdxSideBarStore.  property SideBarCount : Integer; ReadOnly Property

Page 182 of 206

Page 183: Express Sidebar

TdxSideBarStore.SideBarsTdxSideBarStore See Also

Provides indexed access to all TdxSideBars having the Store property equal to the current TdxSideBarStore.  property SideBars[Index : Integer] : TdxSideBar; ReadOnly Property

Page 183 of 206

Page 184: Express Sidebar

TdxSideBarStore.SmallImagesTdxSideBarStore See Also

Provides a list of icons for each item in TdxSideBar where the IconType of an active group equals dxsgSmallIcon. property LargeImages: TCustomImageList; DescriptionEach TdxStoredSideItem in TdxSideBarStore may be associated with a small bitmap in an image list by setting its SmallImage property.

Page 184 of 206

Page 185: Express Sidebar

TdxSideBar.TransparentImagesTdxSideBar

Determines whether TdxSideBar draws images using a mask regardless of Color settings. property TransparentImages : Boolean; DescriptionSet this property to True to draw images using a mask regardless of Color. Default value = False.

Page 185 of 206

Page 186: Express Sidebar

TdxSideBar.StoreTdxSideBar See Also

Determines the TdxSideBarStore of TdxSideBar. property Store : TdxSideBarStore; DescriptionUse Store to specify a TdxSideBarStore for TdxSideBar. You must use the TdxSideBarStore component to enable end user runtime customization within an application. SideBar customization allows end users to easily remove and or add SideBar items at run time, by calling the ExpressSideBar customization window. You can specify the set of SideBar items, but make visible only a subset. End-user may then decide which items to make available as their needs warrant. SideBar items have a StoredItem property, which determines the TdxStoredSideItem component. Note: All groups of TdxSideBar are deleted when changing the Store property.

Page 186 of 206

Page 187: Express Sidebar

TdxSideBar.XPBackgroundColorTdxSideBar See AlsoReturns the appropriate background color for an item when applying the Office XP style of a TdxSideBar control.  class function XPBackgroundColor: TColor;

 DescriptionCall the XPBackgroundColor method to return the appropriate background color for an item. This color is used when applying the Office XP style and depends upon current system button color.

Page 187 of 206

Page 188: Express Sidebar

TdxSideGroup.ActiveTdxSideGroup See Also

Determines whether the current TdxSideGroup object is active. property Active : Boolean; ReadOnly Property

Page 188 of 206

Page 189: Express Sidebar

TdxSideGroup.AssignTdxSideGroup

Copies the contents of the source group into a group. procedure Assign(Source: TPersistent); DescriptionAssign copies Caption, Items, IconType from the source object to a group.

Page 189 of 206

Page 190: Express Sidebar

TdxSideGroup.CaptionTdxSideGroup See Also

Specifies the text which identifies a group to a user. property Caption : string; DescriptionUse this property to associate a group with unique text in order to identify it to end-users. The string’s value is displayed on the group button.

Page 190 of 206

Page 191: Express Sidebar

TdxSideGroup.GetVisibleCountTdxSideGroup See Also

Determines the number of Items currently displayed in the ‘item area’ of TdxSideBar.  function GetVisibleCount : Integer;

Page 191 of 206

Page 192: Express Sidebar

TdxSideGroup.IconTypeTdxSideGroup

Determines whether items of a group are displayed using a large or small icon. type

TdxSideGroupIconType = (dxsgLargeIcon, dxsgSmallIcon); 

property IconType : TdxSideGroupIconType; DescriptionIf this property is set to dxsgLargeIcon, items of a group are displayed using large icons. Otherwise, small icons are displayed.

Page 192 of 206

Page 193: Express Sidebar

TdxSideGroup.ItemCountTdxSideGroup See Also

Determines the number of TdxSideBarItems in a group. property ItemCount : Integer;

Page 193 of 206

Page 194: Express Sidebar

TdxSideGroup.ItemsTdxSideGroup See Also

Represents an indexed array of all the TdxSideBarItem objects in the current group. property Items : TdxSideBarItems;

Page 194 of 206

Page 195: Express Sidebar

TdxSideGroup.MakeActiveTdxSideGroup See Also

Activates the current group in a TdxSideBar control. procedure MakeActive;

Page 195 of 206

Page 196: Express Sidebar

TdxSideGroups.AddTdxSideGroups

Creates a new TdxSideGroup instance and adds it to the Items array. function Add: TdxSideGroup; DescriptionAt design time, use the dxSideBar component editor to add groups.

Page 196 of 206

Page 197: Express Sidebar

TdxSideGroups.ItemsTdxSideGroups See Also

Provides an indexed access to groups in the collection. property Items[Index: Integer]: TdxSideGroup; DescriptionThe Index parameter corresponds to the TdxSideGroup.Index property. It represents the position of a group in a TdxSideBar control.

Page 197 of 206

Page 198: Express Sidebar

TdxSideGroup.TopVisibleItemTdxSideGroup See Also

Determines the topmost visible item index of TdxSideBarItem. property TopVisibleItem : Integer; Run-Time ReadOnly Property

Page 198 of 206

Page 199: Express Sidebar

TdxStoredSideItem.CaptionTdxStoredSideItem See Also

Specifies text which identifies the StoredItem to users. property Caption: string; DescriptionThis value is also copied to the Caption property of TdxSideBarItem which has the StoredItem property equal to the current TdxStoredSideItem.

Page 199 of 206

Page 200: Express Sidebar

TdxStoredSideItem.CategoryTdxStoredSideItem See Also

Specifies the index of a TdxSideBarStore category to which the current TdxStoredSideItem belongs. property Category : Integer;

Page 200 of 206

Page 201: Express Sidebar

TdxStoredSideItem.HintTdxStoredSideItem See Also

Specifies the hint for a Sidebar item which has the StoredItem property equal to the current TdxStoredSideItem.  property Hint : string;

Page 201 of 206

Page 202: Express Sidebar

TdxStoredSideItem.LargeImageTdxStoredSideItem See Also

Determines the image displayed as a large icon in TdxSideBar. property LargeImage : Integer; DescriptionSet this property to specify the large image displayed in a TdxSideBar for items having the StoredItem property equal to the current TdxStoredSideItem (If a group’s IconType equals dxsgLargeIcon).

Page 202 of 206

Page 203: Express Sidebar

TdxStoredSideItem.OnClickTdxStoredSideItem See Also

Occurs when a user clicks the TdxSideBarItem which has the StoredItem property equal to the current TdxStoredSideItem.  type

TdxSideBarItemClickEvent = procedure(Sender: TObject; Item: TdxSideBarItem) of object;

property OnClick : TdxSideBarItemClickEvent; DescriptionThe Item parameter references the item that has been clicked.

Page 203 of 206

Page 204: Express Sidebar

TdxStoredSideItem.PopupMenuTdxStoredSideItem See Also

Identifies the popup menu associated with a TdxSideBarItem which has the StoredItem property equal to the current TdxStoredSideItem. property PopupMenu : TPopupMenu; DescriptionAssign a value to this property to enable a popup menu when a user selects an item and clicks the right mouse button over it.

Page 204 of 206

Page 205: Express Sidebar

TdxStoredSideItem.SmallImageTdxStoredSideItem See Also

Determines the image displayed as a small icon in TdxSideBar. property SmallImage : Integer; DescriptionSet this property to specify the small image displayed in a TdxSideBar for items having the StoredItem property equal to the current TdxStoredSideItem (If a group’s IconType equals dxsgSmallIcon).

Page 205 of 206

Page 206: Express Sidebar

TdxStoredSideItem.StoreTdxStoredSideItem See Also

Provides access the TdxSideBarStore to which the current TdxStoredSideItem belongs. property Store : TdxSideBarStore; ReadOnly Property

Page 206 of 206