CatchFastSkin

Syntax:

FastSkin = CatchFastSkin( ?FastSkin_Label )

Parameters:

?FastSkin_Label

=

a memory pointer to a FastSkin file in memory


Should be a label in the DataSection or a

memory pointer to allocated memory.


Return Values:

0

=

error loading FastSkin

FastSkin

=

success


Description:

Catch a FastSkin file from memory.


Example:

  Skin1 = CatchFastSkin(?skinfile)
  OpenWindow(0, 200, 200, FastSkinWidth(Skin1), FastSkinHeight(Skin1), #WS_POPUP, "AppName")
  SkinWinFast(WindowID(), Skin1)
  
  DataSection
    skinfile:
      IncludeBinary "Skin1.pbs"
  EndDataSection

  If OpenPack("skins.pak")
    Skin1 = CatchFastSkin(NextPackFile())
    Skin2 = CatchFastSkin(NextPackFile())
    ClosePack()

    OpenWindow(0,200,200,FastSkinWidth(Skin1),FastSkinHeight(Skin1),#WS_POPUP,"AppName")
    SkinWinFast(WindowID(), Skin1)
    OpenWindow(1,400,300,FastSkinWidth(Skin2),FastSkinHeight(Skin2),#WS_POPUP,"ToolWin1",WindowID(0))
    SkinWinFast(WindowID(), Skin1)
  EndIf


Supported OS:   Windows