Opened 6 years ago

Last modified 13 months ago

#13882 new enhancement

[BColumnListView] Default Fields scale nicer than customize

Reported by: Janus Owned by: stippi
Priority: low Milestone: Unscheduled
Component: User Interface Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by Janus)

I have notice that the default behavior of some fields is much nicer than the customized one. In most part now for the size field we use the string_to_size() function that does not scale well with the resize of the column. I wrote this as a reminder to see if we can improve the situation.

Customized

Default

I have fallen in love with BeOS over these little details...

Attachments (2)

Customize.gif (325.7 KB ) - added by Janus 6 years ago.
Default.gif (275.5 KB ) - added by Janus 6 years ago.

Download all attachments as: .zip

Change History (8)

by Janus, 6 years ago

Attachment: Customize.gif added

comment:1 by Janus, 6 years ago

patch: 01

by Janus, 6 years ago

Attachment: Default.gif added

comment:2 by Janus, 6 years ago

Description: modified (diff)

comment:3 by Janus, 6 years ago

Description: modified (diff)

comment:4 by Janus, 6 years ago

Description: modified (diff)

comment:5 by pulkomandy, 6 years ago

patch: 10

comment:6 by pulkomandy, 13 months ago

I think there is nothing wrong with ColumnListView here, each application using custom fields has to do the conversion to string in an intelligent way to have the string fit in the allowed space. The custom items have full control over this in their DrawItem function: they know the allocated space (BRect) and what they want to draw.

Only BStringColumn does the "simple" truncation, so if you want something smarter, don't subclass from BStringColumn and you can compute a string that fits the allocated space as nicely as possible.

So: are there any apps in Haiku that hit this problem? If not, there is nothing left to do on our side for this ticket.

Note: See TracTickets for help on using tickets.