🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.upgrade
Article #484

Re: TTrayIcon::ShowMenu()

#484
From: Alain M. Dube
Date: Wed, 01 Feb 2006 18:57
32 lines
2241 bytes
Solution per Borland Support:

The TTrayIcon class has changed a bit in BDS 2006, but you can still 
accomplish the same thing. In BDS 2006, the following OnClick event handler 
code assigns a popup menu to the tray icon and then displays the menu where 
the user has clicked:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
    TrayIcon1->PopupMenu = PopupMenu1;
    TrayIcon1->PopupMenu->Popup(Mouse->CursorPos.x, Mouse->CursorPos.y);
}


"Alain M. Dube" <adube@cadencesoftware.com> wrote in message 
news:43e0c495$1@newsgroups.borland.com...
> Hello;
>
> I've just upgraded from BCB6 to BDS2006.  May application used the sample 
> TTrayIcon when developed under BCB6.  After the upgrade, the TTrayIcon 
> persists but the ::ShowMenu() method seems to have disappeared.  I used 
> this method to cause the Tray Icon's popup menu to be displayed from a 
> TButton's OnClick event.  This is done to accommodate Touch Screen users.
>
> Is there an alternative means to programmatically display the Tray Icon's 
> popup menu (like there is to display bubble help)?
>
> Thanks in advance.
>
> Regards;
>
> Alain
> 
Technical Details
Message-ID: <43e103cf$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!atl-c05.usenetserver.com!news.usenetserver.com!indigo.octanews.net!news-out.octanews.net!teal.octanews.net!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43e0c495$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10529a,872dba256f291f00
X-Google-Attributes: gid10529a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Alain M. Dube" <adube@cadencesoftware.com>
Newsgroups: borland.public.cppbuilder.upgrade
References: <43e0c495$1@newsgroups.borland.com>
Subject: Re: TTrayIcon::ShowMenu()
Date: Wed, 1 Feb 2006 13:57:20 -0500
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 69.243.229.114
Message-ID: <43e103cf$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1138820047 69.243.229.114 (1 Feb 2006 10:54:07 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!atl-c05.usenetserver.com!news.usenetserver.com!indigo.octanews.net!news-out.octanews.net!teal.octanews.net!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail