 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Alain M. Dube Guest
|
Posted: Wed Feb 01, 2006 2:27 pm Post subject: TTrayIcon::ShowMenu() |
|
|
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
|
|
| Back to top |
|
 |
Alain M. Dube Guest
|
Posted: Wed Feb 01, 2006 6:57 pm Post subject: Re: TTrayIcon::ShowMenu() |
|
|
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 (AT) cadencesoftware (DOT) com> wrote
| Quote: | 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
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|