Vcl.ImgList.TCustomImageList.ResInstLoad

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

function ResInstLoad(Instance: THandle; ResType: TResType;
const Name: string; MaskColor: TColor): Boolean;

C++

bool __fastcall ResInstLoad(NativeUInt Instance, TResType ResType, const System::UnicodeString Name, System::Uitypes::TColor MaskColor);

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function public
Vcl.ImgList.pas
Vcl.ImgList.hpp
Vcl.ImgList TCustomImageList

Beschreibung

Lädt eine Ressource in die Bilderliste.

Die Methode ResInstLoad lädt eine Ressource vom Typ TResType in die Bilderliste. Im Parameter Instance geben Sie das Instanzen-Handle des Ressourcenmoduls und im Parameter Name den Namen der Ressource innerhalb des Moduls an. Mit Hilfe von MaskColor wird die Maske für das resultierende Bild erstellt. Soll eine Ressource innerhalb eines Package geladen werden, so ist ResInstLoad anstelle von ResourceLoad zu verwenden.

ResInstLoad liefert bei Erfolg true, ansonsten false.

Siehe auch