Re: Subclassing Gtk2::CellRenderer



A. Pagaltzis wrote:

* Bjarne Steinsbø <bosteins broadpark no> [2003-10-02 11:47]:
Probably a popup when the user clicks in a column of a certain
type. I'll probably sub-class the widget and hide it down
there, so that I can come back and change the implementation at
a later stage, if and when I want to do it properly.

Here's a proposition for something which is as userfriendly as
editable cells, only looks less integrated:

Do it "Excel style", ie have an input box at the top or bottom of
the table, possibly disabled so long as the user has not selected
anything to edit. When they click something to edit, focus the
input box.

Thanks for the suggestion, but I don't think so. First of all I never really liked the "Excel style" (in Excel). I've always found it awkward to move the cursor back and forth between the table and the entry at the top. Secondly, it's not very extensible. What I've mentioned so far is selecting the contents of a cell from a list of allowable values. I probably also want some special behaviour if the string happens to be a date, maybe even editing it by selecting from a calendar. There might be other special cases too, that I haven't thought about yet. The "Excel style" just doesn't scale well.

Bjarne




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