From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function RegisterScaleName(Scale: Single; Name: string): Boolean;


extern DELPHI_PACKAGE bool __fastcall RegisterScaleName(float Scale, System::UnicodeString Name);


Type Visibility Source Unit Parent
function public
FMX.MultiResBitmap FMX.MultiResBitmap


Registers the specified TScaleName named scale in the TScaleList list of mandatory named scales.

The specified Scale and Name (scale name) are fields of the TScaleName record. If a named scale with the specified Scale already exists in the ScaleList list, then RegisterScaleName substitutes the existing named scale with the specified one. Otherwise RegisterScaleName appends the specified named scale to the end of the ScaleList list of mandatory named scales.

Bitmap items for mandatory scales cannot be deleted from a multi-resolution bitmap. Therefore, in the MultiResBitmap Editor Delete only clears the image of the selected mandatory bitmap item entry.

RegisterScaleName returns True if the specified named scale is successfully added to the TScaleList list of mandatory named scales. Otherwise, RegisterScaleName returns False.

See Also