Re: Advice on widgets



On Wed, Jan 28, 2004 at 12:45:33AM +0000, R Georgeson wrote:

line spacing which I have so far failed to find a fix for, plus I've
seen it deprecated here. What would the experienced use for this?
 
I really don't want to put up a form for each entry, it's much less intuitive.

You can have editable treeviews.  However, they don't work like "edit at any
time" spreadsheets.  You'd probably have an Add button to create a new
empty row and place the cursor at the first column (using set_cursor).

If you do decide you want a spreadsheet widget, wxWindows has a very nice
one, if you can get past the creaky API.

2) Some of the entries are choices from menus; is there a menu style
widget which will select the first match to what's been typed so far,
scrolling the menu if necessary (just like the ncurses menus!). There
can be hundreds of entries in a menu.

I believe that in 2.3 you can have the new combo box widget in a treeview,
but I'm not sure about that.  And, supposedly it's "easy" to implement your
own custom renderer in 2.2, though I think that requires more intamacy with
the internals of Gtk than I care to learn about.  

What I do instead is pop up a window on a keypress with a list in it (I gave
up trying to place the popup exactly; it just is not practical; I just pop
it up in the center).

In case it's a consideration it will have to run under Windows though it
will be developed under Linux.

But Gtk apps *should* work under Windows if they don't have unix specific
things in them.

Dave Cook



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