Re: Scrolling a GtkTreeview cell



On Thu, Jan 25, 2018 at 3:18 PM, Kian Karas <kian karas dev gmail com> wrote:

It's an industrial device with a 4.5" screen. The only input method is a
keypad. The keypad has up/down/left/right/enter/back buttons (and some other
domain specific keys). The before mentioned keys are used to navigate a menu
system.

The menu system is a tree structure with multiple levels. It is used to
access new views (different from the menu view; domain specific functions),
status information (e.g. serial no., SW version, etc.) and change settings.

The menu system is a tree structure, but each screen is a flat list.
So yes, you’d need a list, not a tree.

Here's a screenshot of status information, including the string that does
not fit (last row):
https://imgur.com/a/4XlTK

This way of organizing information is sometimes called a property
list. Initially a two-column table seems to be an obvious
implementation, but it suffers from this particular problem when
horizontal space is limited.

How long is that NATID? I see 13 digits and an indication there are
more. Is there any convention to split that into groups, like you see
1234 5678 9012 3456 on bank cards? That would help readability. At the
same time, it introduces natural points to wrap lines.

    Part Number         71-000000
    Version                47.11D
    Build Number          kk-5910
    NATID          8988 1697 0000
                        0000 0013

Also it looks like the left column is too wide. The longest visible
label is Build Number but the NATID value starts way to the right. If
wrapping is not an option, I’d try to make the labels shorter. In a
pinch, “Number” can be shortened to “#”.

Lastly, for this screen, you could skip the list box altogether and
organize the property list as a single column GtkBox, where each child
is a single row GtkBox, with the label in the left cell and value in
the right cell. This approach takes you off the listbox grid; you can
have one row with a long label and a short value, and another row with
a short label and a long value.

    Part Number           71-000000
    Version                  47.11D
    Build Number            kk-5910
    NATID  8988 1697 0000 0000 0013

Sorry for turning it into a “what you want is wrong” discussion :)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]