Jump to content
Sign in to follow this  
AustrianOak

Creating a right click menu for window on taskbar

Recommended Posts

AustrianOak

How do I create my own right click menu on the taskbar like other taskbar items. Since I am using XSkin I cannot right click on the taskbar item so I would like to make my own for it.

Share this post


Link to post
Share on other sites
AustrianOak

Yes but what controlID do i give it? I know its not the window id because that will just set a context menu for the "actual window", not the windows taskbar item

Share this post


Link to post
Share on other sites
Bert

From the helpfile:

After creating the context menu main control with this function, each menu item can be created by using GUICtrlCreateMenuItem.

Sub-menus can be created using GUICtrlCreateMenu.

Just do $id = GUICtrlCreateMenuItem. Use $id to point to it.

Share this post


Link to post
Share on other sites
AustrianOak

You must have mis-understoodd me.

I was wondering what control should I point it to. If I did:

GUICtrlCreateContextMenu($MyWindowHandle)

It would create a context menu ON the window itself.

I want the context menu created on the taskbar item that the window owns.

Edited by nowagain

Share this post


Link to post
Share on other sites
AustrianOak

I still haven't found an answer to this one. Need help.

Share this post


Link to post
Share on other sites
AustrianOak

Bump.

Share this post


Link to post
Share on other sites
Gigglestick

Do you mean the icon in the system tray (by the clock)? If so, try TrayMenuMode, TrayCreateMenu, and TrayCreateItem.

Edited by c0deWorm

My UDFs: ExitCodes

Share this post


Link to post
Share on other sites
AustrianOak

no, i mean the taksbar items..

Share this post


Link to post
Share on other sites
Minikori

no, i mean the taksbar items..

What do you mean by taskbar then?

For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Share this post


Link to post
Share on other sites
Xand3r

he means the start bar... you know between the start button and the clock... :P

P.S.:i've got no ideea how you cand modify that menu

post-19203-1217366601_thumb.jpg

Edited by TheMadman

Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro

Share this post


Link to post
Share on other sites
Minikori

that would be the tray then, so the tray stuff codeworm said


For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Share this post


Link to post
Share on other sites
AustrianOak

Well I know it's possible as when you skin a window the default context menu that pops up when you right click on a taskbar item is gone. And I've seen skinned programs have their custom menu.

Share this post


Link to post
Share on other sites
7h331337

i am sure that in order to mess with the start button menu u half to mes abt with regedit

Share this post


Link to post
Share on other sites
AustrianOak

that would be the tray then, so the tray stuff codeworm said

No, it's not called the tray. What you saw as the Yahoo messenger context menu in TheMadman's screenshot is called a taskbar item. The item is located in the taskbar, not the tray.

Share this post


Link to post
Share on other sites
Gigglestick

I'm not aware of any built-in functions to deal with that menu. You'll probably have to use some obscure DllCall() or something.


My UDFs: ExitCodes

Share this post


Link to post
Share on other sites
AustrianOak

Bump.

I still don't have a clue as to where to start.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×