how to add menus to notify icon...

Discussion about the open-source Phalanger [?] project.

how to add menus to notify icon...

Postby phalanger@codeplex » September 26th, 2006, 12:47 pm

hello ,,

can you tell me how to add menus to notification icon?
Below code are the written in .net . can u convert it into php.net?
this.NotifyIconContextMenu.MenuItems.AddRange(new MenuItem[] { showContextMenuItem, exitContextMenuItem })

phalanger@codeplex
 
Posts: 8
Joined: January 7th, 2012, 8:57 pm

RE: how to add menus to notify icon...

Postby phalanger@codeplex » September 27th, 2006, 8:08 am


hai,
i got the solution for this ...

$this->NotifyIconContextMenu.MenuItems.Add($this>showContextMenuItem);
....
phalanger@codeplex
 
Posts: 8
Joined: January 7th, 2012, 8:57 pm

RE: how to add menus to notify icon...

Postby nagraj@codeplex » September 27th, 2006, 8:18 am

we can also get using

$this->icon->MenuItem->add(0, new MenuItem(array($this, "show")));
nagraj@codeplex
 
Posts: 24
Joined: January 7th, 2012, 8:55 pm

RE: how to add menus to notify icon...

Postby Lada Prosek » September 27th, 2006, 12:56 pm

 this.NotifyIconContextMenu.MenuItems.AddRange(new MenuItem[] { showContextMenuItem, exitContextMenuItem })

has the following PHP equivalent:

 $this->NotifyIconContextMenu->MenuItems->AddRange(array($this->showContextMenuItem, $this->exitContextMenuItem))

(provided that showContextMenuItem and exitContextMenuItem are fields of $this)

Phalanger automatically converts the PHP array, created for instance using the array() construct, to the actual array type expected by the target method.
Lada Prosek
 
Posts: 47
Joined: January 7th, 2012, 8:52 pm

RE: how to add menus to notify icon...

Postby phalanger@codeplex » October 6th, 2006, 6:19 am

thank you.... :)
phalanger@codeplex
 
Posts: 8
Joined: January 7th, 2012, 8:57 pm


Return to Phalanger project

Who is online

Users browsing this forum: No registered users and 24 guests

cron

User Control Panel

Login

Who is online

In total there are 24 users online :: 0 registered, 0 hidden and 24 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 24 guests