[Solved] Notification panel icon

Post your Gambas programming questions here.
Post Reply
AndyGable
Posts: 83
Joined: Wednesday 02nd December 2020 12:11am
Location: England
Contact:

[Solved] Notification panel icon

Post by AndyGable » Sunday 09th May 2021 7:22pm

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: 524
Joined: Thursday 23rd July 2020 5:20pm

Re: Notification panel icon

Post by BruceSteers » Sunday 09th May 2021 10:16pm

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

That should help 😎

Theres possibly examples on he farm.
Wishing well
Bruce

If at first you don't succeed , try it differently.

AndyGable
Posts: 83
Joined: Wednesday 02nd December 2020 12:11am
Location: England
Contact:

Re: Notification panel icon

Post by AndyGable » Monday 10th May 2021 12:49am

BruceSteers wrote:
Sunday 09th 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: 721
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: Notification panel icon

Post by cogier » 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

AndyGable
Posts: 83
Joined: Wednesday 02nd December 2020 12:11am
Location: England
Contact:

Re: Notification panel icon

Post by AndyGable » Monday 10th May 2021 6:43pm

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