Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Counting Clicks in List Widgets
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David Fanning  
View profile  
 More options Feb 8, 9:37 pm
Newsgroups: comp.lang.idl-pvwave
From: David Fanning <n...@idlcoyote.com>
Date: Wed, 8 Feb 2012 19:37:34 -0700
Local: Wed, Feb 8 2012 9:37 pm
Subject: Counting Clicks in List Widgets
Folks,

I ran into an interesting little, uh, feature
today. In the Coyote Library there is a small
dialog widget called a List_Selector. It just
allows the user to specify items in a list and
select one or more of them, returning the selected
items to the user.

   selectedItems = List_Selector(['cow', 'dog', 'coyote'])

I set this up so that if the user double clicks the list
item, it acts as if the user had clicked the Accept
button. I check for this by looking at event.clicks.
If the number is 2, I do my thing.

Works perfectly on Windows machines. But on LINUX
machines (and possible all UNIX machines, don't know)
it behaves differently. What happens is that if the
user instead of clicking the list item twice, just
physically selects the carriage return key while
the cursor is in the list, the event.clicks field
is set to 2!

I don't know if this is a bug or not. It is
certainly NOT documented anywhere that a CR will
cause a double click. Or even that it will cause
an event!

I'm going to fix the program by just ignoring
the clicks for non-Windows machines, but I'm
curious to know how wide-spread the problem might
be. And, especially, if this is a problem on Macs.

Could someone with a non-Windows machine and the
Coyote Library just try the command above and let
me know what happens if you hit the CR key when
the list is on the display. Thanks!

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ameigs  
View profile  
 More options Feb 9, 8:08 am
Newsgroups: comp.lang.idl-pvwave
From: ameigs <andyme...@gmail.com>
Date: Thu, 9 Feb 2012 05:08:39 -0800 (PST)
Local: Thurs, Feb 9 2012 8:08 am
Subject: Re: Counting Clicks in List Widgets
On Feb 9, 2:37 am, David Fanning <n...@idlcoyote.com> wrote:

David,

Running idl7.1.1 on some ancient-ish version of Fedora here at JET. If
the widget has focus but no item clicked on, the the widget disappears
and the value is the first element in the list. If item selected, the
<cr> then that value returned. If multiple selected with shift, then
last one clicked is the value returned.

Andy


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian J. Daniel  
View profile  
 More options Feb 9, 11:03 am
Newsgroups: comp.lang.idl-pvwave
From: "Brian J. Daniel" <Daniels...@yahoo.com>
Date: Thu, 9 Feb 2012 08:03:25 -0800 (PST)
Local: Thurs, Feb 9 2012 11:03 am
Subject: Re: Counting Clicks in List Widgets
On Feb 9, 8:08 am, ameigs <andyme...@gmail.com> wrote:

I have the same behavior on Mac OSX running IDL 8.0.

-B


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Fanning  
View profile  
 More options Feb 9, 11:55 am
Newsgroups: comp.lang.idl-pvwave
From: David Fanning <n...@idlcoyote.com>
Date: Thu, 9 Feb 2012 09:55:02 -0700
Local: Thurs, Feb 9 2012 11:55 am
Subject: Re: Counting Clicks in List Widgets

Brian J. Daniel writes:
> I have the same behavior on Mac OSX running IDL 8.0.

OK, so it looks like this is a UNIX issue in which
Carriage Return <=> clicks=2.

Thanks!

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »