LoadScreenIcon
LoadScreenIcon Filename$
 
Parameters:

    Filename$ = The Filename$ of the icon file you want to load
Returns: NONE
 

      LoadScreenIcon loads an windows ICON file (.ico) and attaches it to the PlayBASIC screen.



FACTS:

      * LoadScreenIcon will also work for full screen execlusive programs. While you won't see the icon on screen, you will see the icon when you ALT-TAB out of your program into something else.



 
Example Source: Download This Example
; Load this icon from the media folder and attach it the playbasic screen
  LoadScreenIcon "..\../Media/playbasic.ico"
  
; Title the screen
  TitleScreen PlayBasic$
  
  
; Ste the program to run at 30 frames per second or less
  SetFPS 30
  
; repeat this look until the users presses SPACE BAR
  Repeat
     
   ; Clear the Screen to black
     Cls RGB(0,0,0)
     
   ; display a message on the screen
     Print "press Alt-Tab to window app selecton"
     
   ; show the usres the current screen
     Sync
     
  Until SpaceKey()=true
  
; END program now
  End
  
  
 
Related Info: OpenScreen | Sync | TitleScreen :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com