Skin Thumbnails

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #37336
    dkjMusic
    Participant

    Where can I find skin thumbnails as are shown in the askindemo project skin selector combo box?

    Also, how do I implement this in my project?

    #56176
    Support
    Keymaster

    TsSkinManager component has the SkinListController object.

    This object contains the SkinList array:

    Code:
    SkinList: array of TacSkinListData;

    Code:
    TacSkinMode = (smInternal, smExtPacked, smExtUnpacked);
    TacSkinListData = record
    skName: string;
    skSkinMode: TacSkinMode;
    skImageIndex: integer;
    end;

    If thumbnail is assigned in a skin, then skImageIndex is >= 0

    All images are stored in the SkinManager.SkinListController.ImgList property.

    If you need to receive notifications about a skinlist updating, you should use the SkinManager.SkinListController.AddControl procedure.

    Add your control there and check the SM_ALPHACMD message (from sMessage.pas) in your control.

    If Message.WParamHi parameter is AC_SKINCHANGED then current skin is changed.

    If Message.WParamHi parameter is AC_SKINLISTCHANGED then list skins is changed.

    Use the SkinManager.SkinListController.DelControl procedure for removing of your control from this notification system.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.