Jump to content

If gui object is selected


Recommended Posts

I have a gui with 2 list views. I want to send the search command based on which list view is selected:

If _IsPressed(11) AND _IsPressed(46) AND WinActive($guiViewProjects) Then ProjectSearch($idlvNotMarked,$MarkupGUI)
        If _IsPressed(11) AND _IsPressed(46) AND WinActive($guiViewProjects) Then ProjectSearch($idlvMarked,$MarkupGUI)

I know that I need to add another parameter to each of these if statements but I'm not sure how to figure out if an element in the gui is the selected element. Tips?

Link to comment
Share on other sites

  • Moderators

@Jewtus I recall running into something similar a while back in the post below. Melba suggested setting the listview handle to a global variable when an item in it was selected. Worked for me:

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...