Sign in to follow this  
Followers 0
Achilles

Right clicking or double clicking on a gui?

7 posts in this topic

Hello, I've made my own in-progress media player and was wondering how to make it so that when on I double click it plays or when I right click on a song it gives me the options to delete it or whatever... I've included an example of a GuiListView (simplified from the helpfile) just in case...

#include <GUIConstants.au3>
GUICreate("listview items",220,250, 100,200,-1,$WS_EX_ACCEPTFILES)
$listview = GUICtrlCreateListView ("col1  |col2|col3  ",10,10,200,150)
$item1=GUICtrlCreateListViewItem("item2|col22|col23",$listview)
$item2=GUICtrlCreateListViewItem("item1|col12|col13",$listview)
$item3=GUICtrlCreateListViewItem("item3|col32|col33",$listview)
GUISetState()

Do
  $msg = GUIGetMsg ()
Until $msg = $GUI_EVENT_CLOSE

Any help appreciated


My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]

Share this post


Link to post
Share on other sites



Any ideas? I'm just trying to make it come up with the menu that comes up like any other time you rightclick on anything....

Search would of reaped this one many times over.....

here's one

http://www.autoitscript.com/forum/index.ph...st&p=246860

as to right click context menu


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Luckily for you, here's another very recent topic describing how to make something work on double click.

That's for buttons, figured the user wanted something for listview being that's what's in the 1st post.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Hello, I've made my own in-progress media player and was wondering how to make it so that when on I double click it plays or when I right click on a song it gives me the options to delete it or whatever... I've included an example of a GuiListView (simplified from the helpfile) just in case...

#include <GUIConstants.au3>
GUICreate("listview items",220,250, 100,200,-1,$WS_EX_ACCEPTFILES)
$listview = GUICtrlCreateListView ("col1  |col2|col3  ",10,10,200,150)
$item1=GUICtrlCreateListViewItem("item2|col22|col23",$listview)
$item2=GUICtrlCreateListViewItem("item1|col12|col13",$listview)
$item3=GUICtrlCreateListViewItem("item3|col32|col33",$listview)
GUISetState()

Do
  $msg = GUIGetMsg ()
Until $msg = $GUI_EVENT_CLOSE

Any help appreciated

The right click option you're talking about is called a "context menu". Have a look at GUICtrlCreateContextMenu in the help file for starters and then search the forum for the same word to get several dozen examples.

Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites

The right click option you're talking about is called a "context menu". Have a look at GUICtrlCreateContextMenu in the help file for starters and then search the forum for the same word to get several dozen examples.

yep i said it was context menu :whistle:


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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  
Followers 0