RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IActionImageProducer.GetDisplayStyle Method

Indicates what type of images this interface can be used to access.

Pascal
function GetDisplayStyle(Sender: TComponent): string;
C++
__fastcall AnsiString GetDisplayStyle(TComponent * Sender);

GetDisplayStyle returns either 'Image' or 'EventImages', depending on whether it can supply a single image for an adapter action and caption, or multiple images that reflect various user events. 

If GetDisplayStyle returns 'Image', use the GetAdapterImage method to obtain an interface for the image object. If GetDisplayStyle returns 'EventImages', use the GetAdapterEventImage method to obtain an interface for the image object. 

When a TAdapterActionButton component uses this interface for its ImageProducer property, its DisplayType property should be compatible with the display style this method returns. That is, if this method returns 'Image', the adapter action button should have a DisplayType of ctImage or ctDefault. If this method returns 'EventImages', the adapter action button can have a DisplayType of ctImage, ctEventImages, or ctDefault. 

Sender is the component that is requesting the image. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!