Re: TGListBox behavior for multiple selections

From: Ilka Antcheva <Ilka.Antcheva_at_cern.ch>
Date: Mon, 27 Aug 2007 10:08:29 +0200


Hi Reiner,

No problem. Thank you for your answer.

Tom, you might use this way for selecting a row of list box entries till the selection via shift-click takes place in CVS.

Best regards, Ilka

ROHLFS Reiner wrote:

> Hi Ilka,
> 
> I'm sorry, you are right, it is working now. I was still using an old 
> ROOT version 5.02.00
> 
> Reiner.
> 
> Ilka Antcheva wrote:

>> Hi Reiner,
>>
>> The way you described works for me having CVS head and running macro
>> $ROOTSYS/tutorials/gui/listBox.C on linux.
>>
>> What are your version of ROOT, environment settings?
>>
>> Thank you, Ilka
>>
>> ROHLFS Reiner wrote:
>>
>>> Hi Tom, Hi Ilka,
>>>
>>> I do support the request from Tom. Actually I mentioned something
>>> like this already in an e-mail some month ago (See below). The fix
>>> Bertrand mentioned in his reply unfortunately never worked out.
>>>
>>> Cheers Reiner.
>>>
>>>
>>> Ilka Antcheva wrote:
>>>
>>>> Hi Tom,
>>>>
>>>> The list box was implemented and behaves as you described since the
>>>> beginning (1998!). May be at that time users did not require the
>>>> functionality we are using in our every day work today (selecting a row
>>>> of entries by shift-click). This looks like the reason (for me) why the
>>>> code provide such a functionality. Of course this can be changed in a
>>>> way you have expected. I will keep you informed.
>>>>
>>>> Best regards, Ilka
>>>>
>>>> -----Original Message-----
>>>> From: owner-roottalk_at_pcroot.cern.ch
>>>> [mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Tom Roberts
>>>> Sent: Sunday, August 26, 2007 12:07 AM
>>>> To: 'ROOT Talk'
>>>> Subject: [ROOT] TGListBox behavior for multiple selections
>>>>
>>>> When I have a TGListBox configured for multiple selections, its
>>>> behavior
>>>> is an unwelcome surprise -- it's as if the CTRL key was always held
>>>> down, with no way to release it. That is, every click adds the item to
>>>> the selection, or removes it if already selected -- there is no way to
>>>> select a row of entries (shift-click) or to simply click on one entry
>>>> and select it alone.
>>>>
>>>> Is there any way to make this widget behave as users expect? That is,
>>>> the way all other multiple-select list boxes behave in other
>>>> applications.
>>>>
>>>> I'm using Root 5.14 on Linux.
>>>>
>>>>
>>>> Tom Roberts
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> Hi Reiner,
>>>
>>> This has been re-implemented and updated in CVS.
>>> Thanks for the suggestion.
>>>
>>> Cheers,
>>> Bertrand.
>>>
>>> -----Original Message-----
>>> From: owner-roottalk_at_pcroot.cern.ch
>>> [mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Reiner Rohlfs
>>> Sent: Thursday, January 12, 2006 1:14 PM
>>> To: roottalk_at_pcroot.cern.ch
>>> Subject: [ROOT] selecting several items in a TGListBox isn't handy
>>> anymore
>>>
>>> Dear ROOT team,
>>>
>>> in old ROOT versions (for example 3.04.02) it was possible to select
>>> several items in a TGListBox by selecting the first item and moving the
>>> mouse while be mouse button is still pressed. This was very handy. Of
>>> course this works only if SetMultipleSelections() is set to kTRUE. Now I
>>> changed to ROOT version 5.02.00 and I have to select each item in a
>>> multi selectable TGListBox with a new press and release of the mouse
>>> button.
>>>
>>> Is it possible to go back to the old situation, which I think was very
>>> handy.
>>>
>>> Thanks Reiner.
>>>
>>

> Received on Mon Aug 27 2007 - 10:08:24 CEST

This archive was generated by hypermail 2.2.0 : Mon Aug 27 2007 - 17:50:02 CEST