Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #7272

Problem with Tray Object

Newsgroups comp.lang.clipper.visual-objects
Date 2014-10-07 01:24 -0700
Message-ID <89231f79-e4e7-43ea-86ae-4291d2b60913@googlegroups.com> (permalink)
Subject Problem with Tray Object
From George Tritsos <GeorgeTritsos@yahoo.gr>

Show all headers | View raw


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:\MyApps\Test\TrayIcon.ico 
METHOD Init() CLASS oTrayIcon 
   SUPER:init(ResourceID{"oTrayIcon", _GetInst()}) 

Back to comp.lang.clipper.visual-objects | Previous | Next | Find similar | Unroll thread


Thread

Problem with Tray Object George Tritsos <GeorgeTritsos@yahoo.gr> - 2014-10-07 01:24 -0700

csiph-web