[Solved] Notification panel icon

Post your Gambas programming questions here.
Post Reply
AndyGable
Posts: 359
Joined: Wednesday 2nd December 2020 12:11am
Location: Northampton, England
Contact:

[Solved] Notification panel icon

Post by AndyGable »

Hi Everyone,

Does anyone know how to show a icon in the notification. Area of the task bar? Or if someone
Knows of a website with examples I would be most
Grateful .

Thanks

Andy
Last edited by AndyGable on Monday 10th May 2021 6:43pm, edited 1 time in total.
User avatar
BruceSteers
Posts: 1521
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Notification panel icon

Post by BruceSteers »

http://gambaswiki.org/wiki/comp/gb.gui.trayicon

That should help 😎

Theres possibly examples on he farm.
If at first you don't succeed , try doing something differently.
BruceS
AndyGable
Posts: 359
Joined: Wednesday 2nd December 2020 12:11am
Location: Northampton, England
Contact:

Re: Notification panel icon

Post by AndyGable »

BruceSteers wrote: Sunday 9th May 2021 10:16pm http://gambaswiki.org/wiki/comp/gb.gui.trayicon

That should help 😎

Theres possibly examples on he farm.
Thank-you Bruce

There are no examples that I could find on the farm but at least this has given me a head start
User avatar
cogier
Site Admin
Posts: 1118
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: Notification panel icon

Post by cogier »

The code below should do the trick.
There are at least 3 examples on the Farm. Alarm_Timer, FileTidy and Analogue_clock.
''needs gb.gui.trayicon

TrayIcon1 As TrayIcon

Public Sub Form_Open()

  With TrayIcon1 = New TrayIcon
    .Picture = Picture["icon:/256/emote-cool"]
    .show
  End With

End
AndyGable
Posts: 359
Joined: Wednesday 2nd December 2020 12:11am
Location: Northampton, England
Contact:

Re: Notification panel icon

Post by AndyGable »

cogier wrote: Monday 10th May 2021 2:02pm The code below should do the trick.
There are at least 3 examples on the Farm. Alarm_Timer, FileTidy and Analogue_clock.
''needs gb.gui.trayicon

TrayIcon1 As TrayIcon

Public Sub Form_Open()

  With TrayIcon1 = New TrayIcon
    .Picture = Picture["icon:/256/emote-cool"]
    .show
  End With

End

Opps I was looking for notification examples lol

Thanks for the sample code I'll have a play with that latter today. Thanks once again.
Post Reply