how to add menus to notify icon...
5 posts
• Page 1 of 1
how to add menus to notify icon...
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 })
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...
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...
we can also get using
$this->icon->MenuItem->add(0, new MenuItem(array($this, "show")));
$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...
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...
thank you.... :)
- phalanger@codeplex
- Posts: 8
- Joined: January 7th, 2012, 8:57 pm
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 34 guests