Search found 6 matches
- Thursday 28th January 2021 5:29pm
- Forum: General
- Topic: TrayIcon picture not updating
- Replies: 12
- Views: 7890
Re: TrayIcon picture not updating
OK, this is what I'm going to do: I'll create 2 TrayIcons, each with it's own icon, and just hide or show the relevant one as needed. No use fighting what looks like a bug somewhere. Thank you all for the time and effort. You're a genius, and it works. Here's my modified code. ' Gambas class file b...
- Thursday 28th January 2021 4:16pm
- Forum: General
- Topic: TrayIcon picture not updating
- Replies: 12
- Views: 7890
Re: TrayIcon picture not updating
...The label is periodically updated, but not the icon. Could you post the details of your system? including:- - Linux Distro - Linux kernel - Gambas version ...and maybe go to menu Project > Properties and post a screen-shot like this; TrayIconProperties.png Mint 20.1 cinnamon Kernel 5.4.0-62-gene...
- Thursday 28th January 2021 3:58pm
- Forum: General
- Topic: TrayIcon picture not updating
- Replies: 12
- Views: 7890
Re: TrayIcon picture not updating
OK, this is what I'm going to do: I'll create 2 TrayIcons, each with it's own icon, and just hide or show the relevant one as needed. No use fighting what looks like a bug somewhere.
Thank you all for the time and effort.
Thank you all for the time and effort.
- Thursday 28th January 2021 3:55pm
- Forum: General
- Topic: TrayIcon picture not updating
- Replies: 12
- Views: 7890
Re: TrayIcon picture not updating
I have run into one part of this problem which is the 'Comment' not changing. This can be solved by 'Hiding' then 'Showing' the icon which will change the 'Comment'. However, I can't get this to work with the 'Picture'. Run this code in a Graphical program with 'gb.gui.trayicon' selected. bSwitch A...
- Thursday 28th January 2021 3:46pm
- Forum: General
- Topic: TrayIcon picture not updating
- Replies: 12
- Views: 7890
Re: TrayIcon picture not updating
OK, I've knocked up a simple program and single-stepped my way through it. TrayIcon.png The only thing I notice is that while the TrayIcon object is updated as expected, the tray icon only gets updated on the screen when the code exits my timer, which calls the Sub, which changes the TrayIcon icon/...
- Thursday 28th January 2021 9:52am
- Forum: General
- Topic: TrayIcon picture not updating
- Replies: 12
- Views: 7890
TrayIcon picture not updating
Hello, I'm writing a form with a TrayIcon that should change according periodically using a timer: Public Sub Form_Open() StatusTimer.Delay = 1 TrayIcon1.Visible = True End Public Sub StatusTimer_Timer() UpdateTrayIcon StatusTimer.Delay = Globals.StatusTimerDelay End Private Sub UpdateTrayIcon() Dim...