Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Technical quetion: Problems with MultiSelectionDataSetView
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
 
Andreas Wild  
View profile  
 More options Jan 30 2002, 5:16 pm
Newsgroups: comp.lang.smalltalk
From: Andreas Wild <Andreas.W...@thinking-subjects.de>
Date: Wed, 30 Jan 2002 23:15:17 +0100
Local: Wed, Jan 30 2002 5:15 pm
Subject: [VW5i] Technical quetion: Problems with MultiSelectionDataSetView
Hi,
today I had some problems with a MultiSelectionDataSetView (maybe the
class name is not 100% corretly written - I don't have the IDE at home).
I created an ApplicationModel containing a MultipleSelectionDataSetView.
Everything worked fine until I testet the behavior I expected when using
the keyboard for navigating. The <tab>-key works well, the editor-cell
is the next editable cell. But when I tried the <shift>-<tab>-key
combination to move backwards I got an error. The view now doesn't know
anymore its editcell.

The first workaround I found was inserting a Delay in the DataSetView's
method where the error occured. I found out that this error disappeared
when I managed to release the <shift>-key before the end of this Delay.
Going deeper into the code I found the method "editAt:......:" (sorry,
don't know the name of the second parameter) in class
MultiSelectionDataSetView. At the end of this method there's a block
which is only evaluated when there's no meta key pressed. Within this
block the editCell for the view is initialized - so without performing
this block the editCell (or is it editorCell) of the view is nil.

My question is: Why is the code in this block only evaluated when no
meta key is pressed. I cannot find any (serious) sense to do so. I
removed the ifTrue: statement and the code is now evaluated regardless
of the state of any meta key. Now it seems to work fine but I fear that
I've ignored some important thing which makes necessary that the code
within this block is only executed if no meta key is pressed. Can
anybody help me (and hopefully tell me that there's really no sense for
the ifTrue: statement)?

Andi

--
---------------------------------------------------
thinking-subjects
Dipl. Ing.
Andreas Wild
Leinenweberstr. 45
70567 Stuttgart
Tel.: +49 (0) 711 7196767
Fax: +49 (0) 711 7196769
eMail: Andreas.W...@thinking-subjects.de
---------------------------------------------------


 
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.
Reinout Heeck  
View profile  
 More options Jan 31 2002, 6:11 am
Newsgroups: comp.lang.smalltalk
From: Reinout Heeck <re...@Desk.org>
Date: Thu, 31 Jan 2002 12:11:13 +0100
Local: Thurs, Jan 31 2002 6:11 am
Subject: Re: [VW5i] Technical quetion: Problems with MultiSelectionDataSetView

Andreas Wild wrote:
> Hi,
> today I had some problems with a MultiSelectionDataSetView (maybe the
> class name is not 100% corretly written - I don't have the IDE at home).
> I created an ApplicationModel containing a MultipleSelectionDataSetView.
> Everything worked fine until I testet the behavior I expected when using
> the keyboard for navigating. The <tab>-key works well, the editor-cell
> is the next editable cell. But when I tried the <shift>-<tab>-key
> combination to move backwards I got an error. The view now doesn't know
> anymore its editcell.

[...]

> My question is: Why is the code in this block only evaluated when no
> meta key is pressed. I cannot find any (serious) sense to do so.

I have no image started, but guessing I'd say the same code might be
used when using the mouse+keyboard for multi-selection (shift-clicking).
When multiple elements are selected no selected cell should be editable...

> I
> removed the ifTrue: statement and the code is now evaluated regardless
> of the state of any meta key. Now it seems to work fine but I fear that
> I've ignored some important thing which makes necessary that the code
> within this block is only executed if no meta key is pressed. Can
> anybody help me (and hopefully tell me that there's really no sense for
> the ifTrue: statement)?

Test multi-selection with the mouse with your modification in place...

My 2c,

Reinout
-------


 
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.
Samuel S. Shuster  
View profile  
 More options Jan 31 2002, 12:06 pm
Newsgroups: comp.lang.smalltalk
From: Samuel S. Shuster <sa...@interaccess.com>
Date: Thu, 31 Jan 2002 10:41:14 -0600
Local: Thurs, Jan 31 2002 11:41 am
Subject: Re: [VW5i] Technical quetion: Problems with MultiSelectionDataSetView
Reinout,

>I have no image started, but guessing I'd say the same code might be
>used when using the mouse+keyboard for multi-selection (shift-clicking).
>When multiple elements are selected no selected cell should be editable...

Yup, that's it!

                                And So It Goes
                                     Sames
______________________________________________________________________

Samuel S. Shuster [|]
VisualWorks Engineering, GUI Project
Go Smalltalk!


 
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.
Samuel S. Shuster  
View profile  
 More options Jan 31 2002, 12:20 pm
Newsgroups: comp.lang.smalltalk
From: Samuel S. Shuster <sa...@interaccess.com>
Date: Thu, 31 Jan 2002 10:46:12 -0600
Local: Thurs, Jan 31 2002 11:46 am
Subject: Re: [VW5i] Technical quetion: Problems with MultiSelectionDataSetView
Andreas Wild,

>My question is: Why is the code in this block only evaluated when no
>meta key is pressed. I cannot find any (serious) sense to do so. I
>removed the ifTrue: statement and the code is now evaluated regardless
>of the state of any meta key. Now it seems to work fine but I fear that
>I've ignored some important thing which makes necessary that the code
>within this block is only executed if no meta key is pressed. Can
>anybody help me (and hopefully tell me that there's really no sense for
>the ifTrue: statement)?

As Reinout said, it is all about mouse vs keyboard. When you are mousing, it
comes through the same method as does the keyboard way. The code was written
with the impression that it couldn't differentiate between when the user was
pressing a Shift or Ctrl Mouse click and a Shifted Keyboard. If you remove that
ifFalse: the problem will be that the Shift and Ctrl Mouse clicks will suddenly
make fields start being edited... not what was wanted.

A fix would be to have the controller remember if it came to have a Shift or
Ctrl from a mouse event or a keyboard event. Not easily done.

My suggestion is to NOT remove that final ifFalse: statement!

                                And So It Goes
                                     Sames
______________________________________________________________________

Samuel S. Shuster [|]
VisualWorks Engineering, GUI Project
Go Smalltalk!


 
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 »