PureSkinMem (Window.l,Gadget.l,Image.l,MemoryAddress.l,Flag.l)
Previous  Top  Next

Skin the Selected Window from Memory.

Use:
PureSkinMem(#Window,#Gadget,#Image,?_MySkin,1)

Flags: True = Center Window

Returns 1 if success.


Example:

#Main=0
#Gadget_Skin=1
#Image_Skin=2
If OpenWindow(#Main,0,0,400,300,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"Demo")
 
PureSkinMem(#Main,#Gadget_Skin,#Image_Skin,?_MySkin,1)  ;<-- Loads PureSkin from Memory  
PureSkinHide(#Main,0)  
 
 
quitMain=0  
Repeat  
Select WaitWindowEvent()  
Case #PB_Event_CloseWindow  
quitMain=1   
EndSelect   
Until quitMain  
 
EndIf
End

DataSection 
_MySkin:IncludeBinary "MySkin.pvs"   
EndDataSection