🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.upgrade
2 messages
2 total messages Started by Alain M. Dube Wed, 01 Feb 2006 14:27
TTrayIcon::ShowMenu()
#483
Author: Alain M. Dube
Date: Wed, 01 Feb 2006 14:27
16 lines
1533 bytes
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 
Re: TTrayIcon::ShowMenu()
#484
Author: 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
> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads