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


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

Problem with Tray Object

Started byGeorge Tritsos <GeorgeTritsos@yahoo.gr>
First post2014-10-07 01:24 -0700
Last post2014-10-07 01:24 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

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

#7272 — Problem with Tray Object

FromGeorge Tritsos <GeorgeTritsos@yahoo.gr>
Date2014-10-07 01:24 -0700
SubjectProblem with Tray Object
Message-ID<89231f79-e4e7-43ea-86ae-4291d2b60913@googlegroups.com>
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()}) 

[toc] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web