KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

NotifyIcon() and ContextMenu()

 
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
Bryce
KiXforms Supporter
KiXforms Supporter


Joined: 26 Mar 2003
Posts: 69

PostPosted: Fri Jul 16, 2004 10:12 pm    Post subject: NotifyIcon() and ContextMenu() Reply with quote

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
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Fri Jul 16, 2004 10:15 pm    Post subject: Reply with quote

Hey Bryce, you are correct ... not in the current release.

plus - I'm working on fixing-up that LastUserInput thingy.
Back to top
View user's profile Send private message
Bryce
KiXforms Supporter
KiXforms Supporter


Joined: 26 Mar 2003
Posts: 69

PostPosted: Fri Jul 16, 2004 10:21 pm    Post subject: Reply with quote

WHOOT!

damn Shawn, you rock!
Back to top
View user's profile Send private message
Bonji
KiXforms Aficionado
KiXforms Aficionado


Joined: 10 Mar 2003
Posts: 393
Location: Virginia

PostPosted: Mon Jul 19, 2004 6:00 pm    Post subject: Reply with quote

Along the same lines, can a TreeView item have a context menu?

BTW, LastUserInput rocks!!

_________________
-Ben
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Tue Jul 20, 2004 12:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group