A cosmetic, but confusing feature/bug

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

A cosmetic, but confusing feature/bug

Maxim Fridental
The definition of large, small and tile icons is pretty unintuitive. You
normally expect, that the Windows list views have modes #report, #list,
#smallIcons and #largeIcons. That's not true for the ListView. There are no
#smallIcons mode, but you have the #tileIcons mode instead. If you naively
think the two modes are the same, you are in trouble, because the #tileIcons
with their size 48@48 are even bigger, as the large icons!
The one and only solution is to patch the method ListView>>viewMode:.


Reply | Threaded
Open this post in threaded view
|

Re: A cosmetic, but confusing feature/bug

Bill Dargel
Maxim Fridental wrote:
>
> The definition of large, small and tile icons is pretty unintuitive. You
> normally expect, that the Windows list views have modes #report, #list,
> #smallIcons and #largeIcons. That's not true for the ListView. There are no
> #smallIcons mode, but you have the #tileIcons mode instead. If you naively
> think the two modes are the same, you are in trouble, because the #tileIcons
> with their size 48@48 are even bigger, as the large icons!
> The one and only solution is to patch the method ListView>>viewMode:.

I beg to differ. At least in Dolphin 5.0 where I was just playing with
it.

The ListView>>viewMode: method supports #smallIcons, #largeIcons,
#tileIcons, #list and #report. See ListView class>>initialize. I was
able to inspect the list of a MethodBrowser and change it to any of the
5 modes. You can also send "aListView beSmallIcons".

The confusing part is that the comment in ListView>>viewMode: is wrong
in that it leaves out #smallIcons.

-------------------------------------------
Bill Dargel            [hidden email]
Shoshana Technologies
100 West Joy Road, Ann Arbor, MI 48105  USA


Reply | Threaded
Open this post in threaded view
|

Re: A cosmetic, but confusing feature/bug

Maxim Fridental
"Bill Dargel" <[hidden email]> schrieb im Newsbeitrag
news:[hidden email]...
> The confusing part is that the comment in ListView>>viewMode: is wrong
> in that it leaves out #smallIcons.
Yes, you're right.


Reply | Threaded
Open this post in threaded view
|

Re: A cosmetic, but confusing feature/bug

Blair McGlashan-2
In reply to this post by Bill Dargel
"Bill Dargel" <[hidden email]> wrote in message
news:[hidden email]...
> Maxim Fridental wrote:
> >
> > The definition of large, small and tile icons is pretty unintuitive. You
> > normally expect, that the Windows list views have modes #report, #list,
> > #smallIcons and #largeIcons. That's not true for the ListView. There are
no
> > #smallIcons mode, but you have the #tileIcons mode instead. If you
naively
> > think the two modes are the same, you are in trouble, because the
#tileIcons

> > with their size 48@48 are even bigger, as the large icons!
> > The one and only solution is to patch the method ListView>>viewMode:.
>
> I beg to differ. At least in Dolphin 5.0 where I was just playing with
> it.
>
> The ListView>>viewMode: method supports #smallIcons, #largeIcons,
> #tileIcons, #list and #report. See ListView class>>initialize. I was
> able to inspect the list of a MethodBrowser and change it to any of the
> 5 modes. You can also send "aListView beSmallIcons".
>
> The confusing part is that the comment in ListView>>viewMode: is wrong
> in that it leaves out #smallIcons.

Yes, that is right. We will correct the comment (thanks).

Maxim, the #tileIcons mode is an approximation to the 'Tiles' view mode in
the Windows XP incarnation of the Windows Explorer. It is not a native mode
of the list view control, but we added it in D5 to be able to view the
larger XP-style icons.

The difference between LVS_LIST (#list) and LVS_SMALLICONS (#smallIcons)
mode is that list most has a fixed columnar layout, whereas the various
"icons" modes theoretically support user rearrangement of the positioning of
the items. Windows XP's Explorer doesn't even bother exposing LVS_SMALLICONS
as a potential view mode for the file list. Dolphin's standard wrapping of
the ListView always displays the items in a fixed grid of positions, so
#smallIcons is even less useful than usual. There are some small differences
in the way the control chooses the number of columns when in LVS_SMALLICONS
mode vs LVS_LIST mode's newspaper-column style, but we really only include
the former for completeness.

Regards

Blair