Seite 1 von 1

compiler & icon

Verfasst: 08.06.2024 20:12
von PIC18F2550
Hello,
how can I change the icon in the window that the compiler uses?

Thank you.

Re: compiler & icon

Verfasst: 08.06.2024 20:24
von RSBasic
With WinAPI:

Code: Alles auswählen

EnableExplicit

Define hIcon = LoadIcon_(0, #IDI_ASTERISK)

If OpenWindow(0, 0, 0, 500, 400, "Window", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  SendMessage_(WindowID(0), #WM_SETICON, 0, hIcon) 
  
  Repeat
    Select WaitWindowEvent()
      Case #PB_Event_CloseWindow
        End
    EndSelect
  ForEver
EndIf