Re: Scrolling a GtkTreeview cell



On Mon, Jan 22, 2018 at 6:03 PM, Kian Karas <kian karas dev gmail com> wrote:

I have a GtkTreeview with size constraints, which causes the text of one
particular column in one particular row not to fit into its cell.

Is there a way for the user to scroll the content of a specific cell (i.e.
a specific column in the current highlighted row) - e.g. with the keyboard
arrow keys, when the GtkTreeview has focus?

My GtkTreeview has two columns and multiple rows. It is currently only one
particular row in my right column that suffers from this issue. However, it
would be great if the solution would be general enough to support scrolling
of the right column of any row (if the content do not fit). I do not expect
to have this issue on my left column. The right column only ever contains
text (GtkCellRendererText).


You keep talking about the chosen solution scheme in general (“I want
to scroll a single cell in a {tree|list} box, and without using a
scroll bar at that”) but I think it would be useful to see the problem
that led you to this scheme.

What is your application? What are your left and right columns? What
are your rows? Why is it that only one right column in one particular
row needs scrolling? Maybe even provide some sample texts.

You also mention some input device constraints (no mouse, limited
buttons) — how is your device going to be used?

After you answer these questions, maybe someone will suggest a
different presentation.


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