View Full Version : On RightClick for Listbox!
takitano
02-04-2010, 12:53 PM
Hallo Media Studio-Team,
please make On RightClick-Function for the Listbox in the next release! It's very important for file search projects.
Thank you.
Sergio
RizlaUK
02-04-2010, 04:54 PM
[Work-A-Round]
place a hotspot over the listbox and use its right click event :yes
[/Work-A-Round]
Ulrich
02-04-2010, 08:28 PM
The workaround is not guaranteed to work, because we are talking about a windowed object. Unfortunately, the Hotspot can end up below the window of the ListBox (in the z-order), and then it won't be able to catch the click.
Ulrich
Scriptonite
02-04-2010, 10:32 PM
What about something like this?
RizlaUK
02-05-2010, 06:41 AM
The workaround is not guaranteed to work
as far as im aware, Z-Order is assigned in the order the objects are created, as long as you place the listbox first it should not be a problem, well, its never given me any trouble
in the case of the grid, what you say is right, k it does not work, but its never been a problem when placed over a listbox (im my experience)
i would be interested in seeing a example where this does not work with a listbox
so.... how about updating the events system
RightClick > ListBox
DoubleClick > Grid
this has been asked many many times in the past, will we ever see these updates
What about something like this?
search the forum for worms "IsInRect" function, it will take care of the object positions, test if the mouse cursor is inside the rectangle of the object and fire the RC event on a per object basis rather than testing co-ord's, this way its more generic
takitano
02-05-2010, 11:49 AM
What about something like this?
:yes That's work!
Thank you for the idea!
But the RightClick in the listbox made all a little simpler and more elegant.:rolleyes
RizlaUK
02-05-2010, 01:23 PM
But the RightClick in the listbox made all a little simpler and more elegant.
search the forum for worms "IsInRect" function, it will take care of the object positions, test if the mouse cursor is inside the rectangle of the object and fire the RC event on a per object basis rather than testing co-ord's, this way its more generic
reteset
02-06-2010, 10:04 AM
if use of an external (Memory) plugin is OK then
Here is the better way to perform a right click on a regular ListBox object
also you can select listbox items with right click
steps :
catch right click on a listbox
send a fake left click message to listbox for select an item throught right click
show a popup menu and apply user's choice on menu
This method can also be applied to Grid and other windowed objects
ScreenShot : Click Here (http://www.amsplugins.com/screenshot.asp?ID=114)
Example : Click Here (http://www.amsplugins.com/details.asp?ID=114&CID=4)
if use of an external (Memory) plugin is OK then
Here is the better way to perform a right click on a regular ListBox object
also you can select listbox items with right click
steps :
catch right click on a listbox
send a fake left click message to listbox for select an item throught right click
show a popup menu and apply user's choice on menu
This method can also be applied to Grid and other windowed objects
ScreenShot : Click Here (http://www.amsplugins.com/screenshot.asp?ID=114)
Example : Click Here (http://www.amsplugins.com/details.asp?ID=114&CID=4)
what version of he mem plugin u using i am getting error and start up and close.
RizlaUK
02-06-2010, 01:50 PM
Memory plugin is fantastic, but i think it scares most users, mention "Subclassing" and most users run like h.e.l.l
Rex, you need to update the plugin, subclass function were added to latest version
Sakuya
02-06-2010, 01:56 PM
Memory plugin is fantastic, but i think it scares most users, mention "Subclassing" and most users run like h.e.l.l
Rex, you need to update the plugin, subclass function were added to latest version
Well you can be sure I would run like he||. None of that memory stuff makes sense to me! :huh
RizlaUK
02-06-2010, 03:25 PM
what, you disappoint me, your a great programmer, i would have thought you had API stuff pretty much nailed by now (i thought you was learning C++)
to be honest, at first i struggled to get my head round it all, but countless hours of reading at MSDN fixed that .....
subclassing is as simple as assigning a callback function, almost everything windows does is done in memory, subclassing just redirects the window/object callback function to your custom function by changing the memory pointer
the advantage of subclassing is you can choose the events you want to react to and pass the rest onto the window/object so it operates as normal
iv rewritten both the ListIcon and Explorer plugins to use the memory plugin to catch the events (beta version is out to a few users, release will come when i find time to finish)
im looking at some real advanced objects to add to AMS, but as usual, my time is very limited so most wont see the light of day, if i managed to make everything i thought of, id be a rich man by now, lol
Sakuya
02-06-2010, 03:46 PM
I went from C++ to C# because C++ is just stupidly difficult for me at the moment.
Also, you can be sure that when I get paid I'll be getting my hands on that ListIcon object. You know I've always wanted that one. :p
RizlaUK
02-06-2010, 04:08 PM
lol, yeah, iv got to get my site back up first, i pulled it down because of the bugs in the plugins, but its all fixed, just waiting for conformation from my beta testers that all is ok (was some issues, nothing serious, just teething stuff)
and you are going to love the next project, see attachment :p (it will take a little time to convert to a plugin tho)
Sakuya
02-06-2010, 04:34 PM
lol, yeah, iv got to get my site back up first, i pulled it down because of the bugs in the plugins, but its all fixed, just waiting for conformation from my beta testers that all is ok (was some issues, nothing serious, just teething stuff)
and you are going to love the next project, see attachment :p (it will take a little time to convert to a plugin tho)
... :eek:
[10 characters]
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.