StatusBarIcon()

Syntax

StatusBarIcon(#StatusBar, Field, ImageID)
Description
Add an icon to the the specified Field. The icon is put at the left of the field text. The icon must be in 16*16 format. ImageID can be easily obtained by using LoadImage() or ImageID().

Example:
  If OpenWindow(0, 0, 0, 340, 50, "StatusBarIcon", #PB_Window_SystemMenu|#PB_Window_ScreenCentered|#PB_Window_SizeGadget)
    If CreateStatusBar(0, WindowID(0))
      AddStatusBarField(120)
      AddStatusBarField(170)
    EndIf
    StatusBarText(0, 0, "Area normal")
    StatusBarText(0, 1, "Area right & raised", #PB_StatusBar_Right|#PB_StatusBar_Raised) 

    If LoadImage(0, "cube16.ico")     ; change path/filename to your own 16x16 pixel image
      StatusBarIcon(0, 0, ImageID(0))
      StatusBarIcon(0, 1, ImageID(0))
    EndIf  
    
    Repeat
    Until WaitWindowEvent() = #PB_Event_CloseWindow
  EndIf 

Supported OS

Windows

<- StatusBarID() - StatusBar Index - StatusBarText() ->