|
Top Previous Next |
|
The TSRVImagesScroll component is used to display images in a scrollable row (or column) Unit SRVImagesScroll; Syntax TSRVImagesScroll = class(TSRVCustomControl) HierarchyTObject TPersistent TComponent TControl TWinControl TCustomControl PropertiesThis component publishes the following properties inherited from TSRVCustomControl: •SkinManager; •SkinSchemeIndex; •properties inherited from TCustomControl. New published properties:
To prevent flickering, assign DoubleBuffered=True if the control is placed on the form (not necessary, if inserted in TSRichViewEdit control). New published properties-colors (for non-skin mode):
New published properties related to scrollbar:
Published properties related to skins:
Eventstype TSRVCloseImageScrollEvent = procedure(Sender: TSRVImagesScroll; ItemIndex : Integer; var CanClose : Boolean) of object; TSRVImageScrollMoveEvent = procedure(Sender: TSRVImagesScroll; NewImageIndex, OldImageIndex : Integer) of object; TSRVDrawImageScrollEvent = procedure(Sender: TSRVImagesScroll; Canvas : TCanvas; ARect, PaintRect : TRect; State : TSRVDrawStates; var DoDefault : Boolean) of object; TSRVDrawImageScrollItemEvent = procedure(Sender: TSRVImagesScroll; Canvas : TCanvas; ARect, PaintRect : TRect; ItemIndex : Integer; State : TSRVDrawStates; var DoDefault : Boolean) of object; OnChange: TNotifyEvent occurs after a new item is selected. OnItemMove: TSRVImageScrollMoveEvent occurs when two items exchange their places as a result of item moving. Similar to OnMoveTab for TSRVTabSet. OnCloseItem : TSRVCloseImageScrollEvent occurs when the user attempts to close an item. OnDrawBorder, OnDrawBackground, OnDrawItem, OnDrawCloseButton: TSRVDrawImageScrollEvent allow custom drawing for the corresponding objects. Canvas – a canvas where to draw. ARect – a rectangle defining the position of the object to draw. APaintRect – a rectangle that needs to be redrawn; you can use this parameter to optimize drawing. State – a set describing the current object state. Set DoDefault to False to prevent the default drawing of this object. PaintingCaption is aligned according to Alignment. CaptionOffset shifts the text (to the right, if Alignment=taLeftJustify, or to the left, if Alignment=taRightJustify). Caption is placed vertically at the top. Background is drawn using Color property. Border is drawn using BorderColor, BorderWidth and CornersOffset properties (even in a skin mode). If SkinManager is assigned, the control is drawn using SkinManager.CurrentSkin.BoxSchemes[SkinSchemeIndex]. Example:
|