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 UseImage().

Example:
  If OpenWindow(0, 0, 0, 340, 50, #PB_Window_SystemMenu|#PB_Window_ScreenCentered|#PB_Window_SizeGadget, "StatusBarIcon")
    If CreateStatusBar(0, WindowID())
      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,UseImage(0))
      StatusBarIcon(0,1,UseImage(0))
    EndIf  
    
    Repeat
    Until WaitWindowEvent() = #PB_Event_CloseWindow
  EndIf 

Supported OS

Windows

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