View previous topic :: View next topic |
Author |
Message |
Bryce KiXforms Supporter

Joined: 26 Mar 2003 Posts: 69
|
Posted: Fri Jul 16, 2004 10:12 pm Post subject: NotifyIcon() and ContextMenu() |
|
|
am i correct that you can not assign a Context menu to a NotifyIcon() at this time?
i am wanting do to something like this....
Code: |
Break On
$System = CreateObject("Kixtart.System")
$NotifyIcon1 = $System.NotifyIcon()
$NotifyIcon1.Icon = $System.Icon("shell32.dll;160")
$NotifyIcon1.ContextMenu = $System.ContextMenu()
$NotifyIcon1Exit = $NotifyIcon1.ContextMenu.MenuItems.Add("Exit...")
$NotifyIcon1Exit.OnClick = "quit()"
$NotifyIcon1.Visible = 1
While $notifyicon1.Visible
$= Execute($System.Application.DoEvents)
Loop
$NotifyIcon1.Visible = 0
Exit 1 |
|
|
Back to top |
|
 |
Shawn KiXforms Developer


Joined: 22 Feb 2003 Posts: 1983 Location: Canada
|
Posted: Fri Jul 16, 2004 10:15 pm Post subject: |
|
|
Hey Bryce, you are correct ... not in the current release.
plus - I'm working on fixing-up that LastUserInput thingy. |
|
Back to top |
|
 |
Bryce KiXforms Supporter

Joined: 26 Mar 2003 Posts: 69
|
Posted: Fri Jul 16, 2004 10:21 pm Post subject: |
|
|
WHOOT!
damn Shawn, you rock! |
|
Back to top |
|
 |
Bonji KiXforms Aficionado


Joined: 10 Mar 2003 Posts: 393 Location: Virginia
|
Posted: Mon Jul 19, 2004 6:00 pm Post subject: |
|
|
Along the same lines, can a TreeView item have a context menu?
BTW, LastUserInput rocks!! _________________ -Ben |
|
Back to top |
|
 |
Shawn KiXforms Developer


Joined: 22 Feb 2003 Posts: 1983 Location: Canada
|
Posted: Tue Jul 20, 2004 12:08 pm Post subject: |
|
|
TreeView will have the ContextMenu, I am working on it (as we speak). Having a small issue with implementing the OnPopup event for the menu though. What good is a context menu if you cant dynamically give it context, so this is what is holding it up right now.
-Shawn |
|
Back to top |
|
 |
|