Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #7265 > unrolled thread
| Started by | George Tritsos <GeorgeTritsos@yahoo.gr> |
|---|---|
| First post | 2014-10-03 13:54 -0700 |
| Last post | 2014-10-07 15:11 +0200 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Tray Object from Fabrice Foray tools George Tritsos <GeorgeTritsos@yahoo.gr> - 2014-10-03 13:54 -0700
Re: Tray Object from Fabrice Foray tools "Jamal" <someone@example.com> - 2014-10-04 13:39 -0400
Re: Tray Object from Fabrice Foray tools George Tritsos <GeorgeTritsos@yahoo.gr> - 2014-10-05 08:30 -0700
Re: Tray Object from Fabrice Foray tools George Tritsos <GeorgeTritsos@yahoo.gr> - 2014-10-06 14:20 -0700
Re: Tray Object from Fabrice Foray tools D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2014-10-07 15:11 +0200
| From | George Tritsos <GeorgeTritsos@yahoo.gr> |
|---|---|
| Date | 2014-10-03 13:54 -0700 |
| Subject | Tray Object from Fabrice Foray tools |
| Message-ID | <9d0caf14-fa3a-4fa2-9813-ec6d6c6c4f83@googlegroups.com> |
Hi, I would like to put my application in the taskbar beside the clock (Like TeamViewer etc) and associate a custom context menu to it. I read that this can be done with Tray Object. Anyone who can help with this. Thanks in advance George
[toc] | [next] | [standalone]
| From | "Jamal" <someone@example.com> |
|---|---|
| Date | 2014-10-04 13:39 -0400 |
| Message-ID | <m0pbbj$be7$1@speranza.aioe.org> |
| In reply to | #7265 |
Using VO code: See https://groups.google.com/forum/#!searchin/comp.lang.clipper.visual-objects/tray/comp.lang.clipper.visual-objects/0GeslM3JDkc/RLXQbB28dgIJ Jamal "George Tritsos" wrote in message news:9d0caf14-fa3a-4fa2-9813-ec6d6c6c4f83@googlegroups.com... Hi, I would like to put my application in the taskbar beside the clock (Like TeamViewer etc) and associate a custom context menu to it. I read that this can be done with Tray Object. Anyone who can help with this. Thanks in advance George
[toc] | [prev] | [next] | [standalone]
| From | George Tritsos <GeorgeTritsos@yahoo.gr> |
|---|---|
| Date | 2014-10-05 08:30 -0700 |
| Message-ID | <4c8a81f2-066c-46d6-9ffe-f4f0eeb691b7@googlegroups.com> |
| In reply to | #7266 |
Hi Jamal, Thanks a lot. Regards George
[toc] | [prev] | [next] | [standalone]
| From | George Tritsos <GeorgeTritsos@yahoo.gr> |
|---|---|
| Date | 2014-10-06 14:20 -0700 |
| Message-ID | <d0b3fff1-c5cc-4216-9f8d-6007a05b5533@googlegroups.com> |
| In reply to | #7267 |
hi all,
I have a problem with FabTray Object.When the cursor is over the tray icon then the tray icon disappears. I have the Class FabTrayObject. My app is very small and the ShellWindow does not appears.
Any ideas what i do wrong?
Thanks in advance
George
My Code:
METHOD Start() CLASS App
LOCAL oMainWindow AS MyShell
SELF:Initialize()
oMainWindow := MyShell{SELF}
oMainWindow:Hide()
SELF:Exec()
CLASS MyShell INHERIT SHELLWINDOW
//{{%UC%}} USER CODE STARTS HERE (do NOT remove this line)
PROTECT oTray AS FabTrayObject
METHOD Init(oParent,uExtra) CLASS MyShell
SELF:PreInit(oParent,uExtra)
SUPER:Init(oParent,uExtra)
SELF:HyperLabel := HyperLabel{#MyShell,"MyApp",NULL_STRING,NULL_STRING}
SELF:Origin := Point{13, 433}
SELF:Size := Dimension{400, 300}
SELF:PostInit(oParent,uExtra)
RETURN SELF
METHOD PostInit(oParent,uExtra) CLASS AutoBUShell
//Put your PostInit additions here
oTray := FabTrayObject{ SELF:Owner, oTrayIcon{}, "The Message" }
oTray:Show()
RETURN NIL
CLASS oTrayIcon INHERIT Icon
RESOURCE oTrayIcon Icon C:\CAVO25\BIN\MyApps\Test\TrayIcon.ico
METHOD Init() CLASS oTrayIcon
SUPER:init(ResourceID{"oTrayIcon", _GetInst()})
[toc] | [prev] | [next] | [standalone]
| From | D.J.W. van Kooten <vankooten@removethis.ic2.com> |
|---|---|
| Date | 2014-10-07 15:11 +0200 |
| Message-ID | <5cp73ap3nf366i29mcco2vo88jqpp6evda@4ax.com> |
| In reply to | #7271 |
On Mon, 6 Oct 2014 14:20:24 -0700 (PDT), George Tritsos
<GeorgeTritsos@yahoo.gr> wrote:
Hello George,
>I have a problem with FabTray Object.When the cursor is over the tray icon then the tray icon disappears.
>I have the Class FabTrayObject. My app is very small and the ShellWindow does not appears.
We do it like this:
IF !SELF:lTrayIconPresent
IF SELF:AddTrayIcon
(oIcon,BALLOONICONID,Vt("CLM_HERINNER","Some text") )
SELF:lTrayIconPresent := TRUE
ENDIF
ENDIF
AND TO REMOVE:
IF SELF:lTrayIconPresent
IF SELF:DeleteTrayIcon (BALLOONICONID)
SELF:lTrayIconPresent := FALSE
ELSE
// Error
ENDIF
ENDIF
Regularely we found that a trayicon is NOT removed despite a succesful
call to DeleteTrayICon. Never found the cause. What happens then:
(only) when you close the program, the trayicon is still there. As
soon as you move the cursor over the trayicon it disappears, exactly
as you describe.
This would suggest that you trayicon isn't owned/locked (?) from your
program, as this apparently happens to you when you are still in the
program.
I realize this reply doesn't directly help but maybe it helps you find
a cause.
Dick
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web