15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Tree Control with Multiple Selection

193.6.32.10 -- szilvasy@
Friday, December 29, 1995

Hi,

Could anyone give me  some pointers on a multiple selection Tree 
Control class implementation. (shareware)
I'd like to have something like FileView in MSVC 4.0:
-multiple selection
-drag&drop

Any help would be much appreciated.
Cheers,
Albert
--
UofV,Hungary



SteveN -- steven@primenet.com
Sunday, December 31, 1995

If it's accessible to you, Microsoft Systems Journal, July 1994, has 
an extensive look at TreeViews, including a sample program that 
includes drag & drop.  If you're developing for Windows 95, you don't 
need a shareware implementation, MFC has a class for it.
-Steve


> From:          szilvasy@[193.6.32.10]
> To:            mfc-l@netcom.com
> Date:          Fri, 29 Dec 1995 19:23:09 +0000
> Subject:       Tree Control with Multiple Selection
> Priority:      normal
> Reply-to:      mfc-l@netcom.com

> Hi,
> 
> Could anyone give me  some pointers on a multiple selection Tree 
> Control class implementation. (shareware)
> I'd like to have something like FileView in MSVC 4.0:
> -multiple selection
> -drag&drop
> 
> Any help would be much appreciated.
> Cheers,
> Albert
> --
> UofV,Hungary
> 
> 
----------------------------------------------------------
steven@primenet.com
http://www.primenet.com/~steven
----------------------------------------------------------



Jeff Wishnie -- jwishnie@swellsoft.com
Tuesday, January 02, 1996

I'm using the MFC 4.0 TreeCtrl class and as far as I can tell it does not
support multiple selection.

There is sample code on the net (I got it from the ms ftp site) that shows a
way to fake out multipe selection using checkboxes, but that is not
acceptible behavior.

Have I missed something? I'm looking for the exact behavior of the TreeCtrl,
but one that allows multiple items to be selected at once.

- Jeff

At 10:10 PM 31-12-95 +0000, you wrote:
>If it's accessible to you, Microsoft Systems Journal, July 1994, has 
>an extensive look at TreeViews, including a sample program that 
>includes drag & drop.  If you're developing for Windows 95, you don't 
>need a shareware implementation, MFC has a class for it.
>-Steve
>
>
>> From:          szilvasy@[193.6.32.10]
>> To:            mfc-l@netcom.com
>> Date:          Fri, 29 Dec 1995 19:23:09 +0000
>> Subject:       Tree Control with Multiple Selection
>> Priority:      normal
>> Reply-to:      mfc-l@netcom.com
>
>> Hi,
>> 
>> Could anyone give me  some pointers on a multiple selection Tree 
>> Control class implementation. (shareware)
>> I'd like to have something like FileView in MSVC 4.0:
>> -multiple selection
>> -drag&drop
>> 
>> Any help would be much appreciated.
>> Cheers,
>> Albert
>> --
>> UofV,Hungary
>> 
>> 
>----------------------------------------------------------
>steven@primenet.com
>http://www.primenet.com/~steven
>----------------------------------------------------------
>
>
jwishnie@swellsoft.com
415 731-4038 (w)




LeRoy Baxter -- lbaxter@cinfo.com
Wednesday, January 03, 1996

I don't think it is implemented because of the ambiguities involved in
the parent-child relationships.  ie.  if a parent item is selected, can
child items of a different parent also be selected?  I think this kind
of behavior would be difficult to design for in a general-purpose
control - the possible combinations could be enormous.

On Tuesday, January 02, 1996 12:50 PM, Jeff Wishnie[SMTP:jwishnie@swellsoft.com] wrote:
>I'm using the MFC 4.0 TreeCtrl class and as far as I can tell it does not
>support multiple selection.
>
>There is sample code on the net (I got it from the ms ftp site) that shows a
>way to fake out multipe selection using checkboxes, but that is not
>acceptible behavior.
>
>Have I missed something? I'm looking for the exact behavior of the TreeCtrl,
>but one that allows multiple items to be selected at once.
>
>- Jeff
>
>At 10:10 PM 31-12-95 +0000, you wrote:
>>If it's accessible to you, Microsoft Systems Journal, July 1994, has 
>>an extensive look at TreeViews, including a sample program that 
>>includes drag & drop.  If you're developing for Windows 95, you don't 
>>need a shareware implementation, MFC has a class for it.
>>-Steve
>>
>>
>>> From:          szilvasy@[193.6.32.10]
>>> To:            mfc-l@netcom.com
>>> Date:          Fri, 29 Dec 1995 19:23:09 +0000
>>> Subject:       Tree Control with Multiple Selection
>>> Priority:      normal
>>> Reply-to:      mfc-l@netcom.com
>>
>>> Hi,
>>> 
>>> Could anyone give me  some pointers on a multiple selection Tree 
>>> Control class implementation. (shareware)
>>> I'd like to have something like FileView in MSVC 4.0:
>>> -multiple selection
>>> -drag&drop
>>> 
>>> Any help would be much appreciated.
>>> Cheers,
>>> Albert
>>> --
>>> UofV,Hungary
>>> 
>>> 
>>----------------------------------------------------------
>>steven@primenet.com
>>http://www.primenet.com/~steven
>>----------------------------------------------------------
>>
>>
>jwishnie@swellsoft.com
>415 731-4038 (w)
>
>
>





Ken Freeman -- kfreeman@viewlogic.com
Friday, January 05, 1996

LeRoy Baxter wrote:
> 
> I don't think it is implemented because of the ambiguities involved in
> the parent-child relationships.  ie.  if a parent item is selected, can
> child items of a different parent also be selected?  I think this kind
> of behavior would be difficult to design for in a general-purpose
> control - the possible combinations could be enormous.
> 
> On Tuesday, January 02, 1996 12:50 PM, Jeff Wishnie[SMTP:jwishnie@swellsoft.com] wrote:
> >I'm using the MFC 4.0 TreeCtrl class and as far as I can tell it does not
> >support multiple selection.
> >
> >There is sample code on the net (I got it from the ms ftp site) that shows a
> >way to fake out multipe selection using checkboxes, but that is not
> >acceptible behavior.
> >
> >Have I missed something? I'm looking for the exact behavior of the TreeCtrl,
> >but one that allows multiple items to be selected at once.
> >
> >- Jeff
> >

We're using a tree control from Premia (sales@premia.com) that supports
multiple select.  If you want to select objects on different branches, just
use control-Click or Shift-Click and you can do it.

That being said, I prefer the Win95 Explorer model where you have a 
parallel list control that supports multi-select.

Ken



LeRoy Baxter -- lbaxter@cinfo.com
Saturday, January 06, 1996

And if you wanted to _prevent_ the selection of items not in the same branch?

It's not that it can't be done, it is that the MS common control does not support
multiple select (at this time), and the _probable_ reason for that might be
because of all the possible ways programmers might want to include or
exclude items in/from a selection.  While selecting multiple directories and files
can make sense, other parent-child (or parent-intermediate-child) branches
might not.

On Friday, January 05, 1996 8:38 AM, Ken Freeman[SMTP:kfreeman@viewlogic.com] wrote:
>LeRoy Baxter wrote:
>> 
>> I don't think it is implemented because of the ambiguities involved in
>> the parent-child relationships.  ie.  if a parent item is selected, can
>> child items of a different parent also be selected?  I think this kind
>> of behavior would be difficult to design for in a general-purpose
>> control - the possible combinations could be enormous.
>> 
>> On Tuesday, January 02, 1996 12:50 PM, Jeff Wishnie[SMTP:jwishnie@swellsoft.com] wrote:
>> >I'm using the MFC 4.0 TreeCtrl class and as far as I can tell it does not
>> >support multiple selection.
>> >
>> >There is sample code on the net (I got it from the ms ftp site) that shows a
>> >way to fake out multipe selection using checkboxes, but that is not
>> >acceptible behavior.
>> >
>> >Have I missed something? I'm looking for the exact behavior of the TreeCtrl,
>> >but one that allows multiple items to be selected at once.
>> >
>> >- Jeff
>> >
>
>We're using a tree control from Premia (sales@premia.com) that supports
>multiple select.  If you want to select objects on different branches, just
>use control-Click or Shift-Click and you can do it.
>
>That being said, I prefer the Win95 Explorer model where you have a 
>parallel list control that supports multi-select.
>
>Ken
>
>






| Вернуться в корень Архива |