Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 14 of 14
  1. #1
    Join Date
    Dec 2009
    Location
    Germany/Russia
    Posts
    16

    Please make On RightClick for Listbox

    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
    Last edited by takitano; 02-04-2010 at 12:05 PM. Reason: New Header

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    [Work-A-Round]
    place a hotspot over the listbox and use its right click event
    [/Work-A-Round]
    Last edited by RizlaUK; 02-16-2010 at 05:01 AM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    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

  4. #4
    Join Date
    Oct 2009
    Location
    127.0.0.1
    Posts
    279
    What about something like this?
    Attached Files
    There are 10 types of people in the world: those who understand binary, and those who don't.

  5. #5
    Join Date
    May 2006
    Posts
    5,380
    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
    Last edited by RizlaUK; 02-05-2010 at 05:46 AM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  6. #6
    Join Date
    Dec 2009
    Location
    Germany/Russia
    Posts
    16
    Quote Originally Posted by Scriptonite View Post
    What about something like this?
    That's work!

    Thank you for the idea!

    But the RightClick in the listbox made all a little simpler and more elegant.

  7. #7
    Join Date
    May 2006
    Posts
    5,380
    Code:
    But the RightClick in the listbox made all a little simpler and more elegant.
    Code:
    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
    Open your eyes to Narcissism, Don't let her destroy your life!!

  8. #8
    Join Date
    May 2006
    Posts
    1,443
    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
    Example : Click Here

  9. #9
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,634
    Quote Originally Posted by reteset View Post
    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
    Example : Click Here
    what version of he mem plugin u using i am getting error and start up and close.

  10. #10
    Join Date
    May 2006
    Posts
    5,380
    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
    Open your eyes to Narcissism, Don't let her destroy your life!!

  11. #11
    Join Date
    Oct 2009
    Location
    Merton, United Kingdom
    Posts
    684
    Quote Originally Posted by RizlaUK View Post
    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!

  12. #12
    Join Date
    May 2006
    Posts
    5,380
    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
    Open your eyes to Narcissism, Don't let her destroy your life!!

  13. #13
    Join Date
    Oct 2009
    Location
    Merton, United Kingdom
    Posts
    684
    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.

  14. #14
    Join Date
    May 2006
    Posts
    5,380
    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 (it will take a little time to convert to a plugin tho)
    Last edited by RizlaUK; 02-16-2010 at 05:01 AM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  15. #15
    Join Date
    Oct 2009
    Location
    Merton, United Kingdom
    Posts
    684
    Quote Originally Posted by RizlaUK View Post
    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 (it will take a little time to convert to a plugin tho)
    ...

    [10 characters]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts