Re: [GTKMM] Handling Items in a TreeView
- From: Ian Martin <martin_id vodafone co nz>
- To: gtkmm-list gnome org
- Subject: Re: [GTKMM] Handling Items in a TreeView
- Date: Tue, 05 Mar 2013 20:08:22 +1300
On 05/03/13 16:15, Carlos Gottberg wrote:
...
Is this idea of a new window (a Gtk::Window) being created for every
option, correct? How would you handle this?
The "Correct" way of doing something is the way that is least likely to
make the end user need to bug the developer with questions. As general
principles, make it
quick
easy
easily discoverable.
The other doubt, how should I implement the menu? Through a
bunch of if's, through a switch (Each row having an additional field
storing an integer value representing the window to open) or by some
trickery storing a pointer to the method in charge to create the X
window in every row and then calling them forth? Or is there another way?
A Gtk::Menu <http://developer.gnome.org/gtkmm/3.4/classGtk_1_1Menu.html>
(link to the reference page) might be appropriate. Also have a look at
the book : the chapter on menus and toolbars should help you decide.
<http://developer.gnome.org/gtkmm-tutorial/3.0/chapter-menus-and-toolbars.html.en>
By the way, now that I think about it. Is it a correct idea to
implement a menu through a TreeView? Or should I just add some Buttons
and that's all.
I am using gtkmm3, by the way.
P.D: Sorry for my English, and the dumb (I see them that way)
questions. I searched the mail list till the sixth google search page
and found nothing related to my problem, so... here I am :).
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
https://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]