Hello Sir,
Thank you so much Sir, Its worked.
Regards
Deepak, India
On Wed, Sep 20, 2017 at 1:47 PM, Kjell Ahlstedt
wrote:
> Can't you use plain old loops? Something like this:
>
> class ModelColumns : public Gtk::TreeModel::ColumnRecord
> {
> public:
>
>
Can't you use plain old loops? Something like this:
class ModelColumns : public Gtk::TreeModel::ColumnRecord
{
public:
ModelColumns()
{
for (int col = 0; col < 6; ++col)
add(m_cols[col]);
It would certainly help if you show an excerpt of what kind of data you
currently add, and how. Then we can figure out how to make that into
something loopable.
Generally, though, I think the idea would be that you would define a struct
containing the data you want to insert, then loop over a set
Fique a vontade, estarei a disposição! Meu inglês que talvez não seja muito
bom, mas farei o possível.
Feel free, I will be available! Maybe my English is not very good, but I'll
try.
Att
2013/4/29 Mikael Hakman
> Many thanks Alcione. I have imported your example into Eclipse CDT and it
> work
Many thanks Alcione. I have imported your example into Eclipse CDT and it works
ok. Now I have to analyze the code in order to understand it. May I comeback to
you when I have some questions? Thanks.
On Apr 29, 2013, at 1:54 PM, Alcione Ferreira wrote:
> http://gtkmm.alcionesytes.net/examples/o
http://gtkmm.alcionesytes.net/examples/others/treemodelcustom/
2013/4/29 Mikael Hakman
> Is there any information on implementing own TreeModel? A tutorial, or
> description, or example would by highly appreciated. Thanks.
>
> ___
> gtkmm-list mailing
On Wed, 2009-06-03 at 22:48 +0200, Germán Diago wrote:
> I need to use more things besides the treemodel, so I would like to
> make another question?
> This just happens with treemodel / treeview, or it's extensible to
> Gtk::TextBuffers and
> so on? Thanks in advance.
Other things probably work.
On Wed, 2009-06-03 at 14:23 +0200, Germán Diago wrote:
> Hello. I would like to know if it's possible to define
> column types directly in glade and use them from the ui
> with gtkmm bindings. I tried but it seems not to work. I'm
> not sure if I'm doing anything wrong.
Not, not really. Your C++ c
On Thu, 2009-03-05 at 23:46 -0500, José Alburquerque wrote:
> Are you sure you need to derive your own TreeModel instead of using
> ListStore?
The reason I want to derive my own is to control the way the data is
stored internally. It will be loaded directly from an SQL query and with
a derivation
On Thu, 2009-03-05 at 13:57 -0700, Eddie Carle wrote:
> I am trying to create a list only TreeModel derivation and am unsure of
> what I need to override. I am returning TREE_MODEL_LIST_ONLY from
> Gtk::TreeModel::get_flags() const so do I still have to override the
> children related virtuals?
A
On 1/29/07, Andrew E. Makeev <[EMAIL PROTECTED]> wrote:
> There was some offer to implement custom TreeModel and add it to GTKMM
> library (Jonathon Jongsma <[EMAIL PROTECTED]>).
>
> This link supposed to have some source codes (I haven't looked into):
>
> http://download.gna.org/colorscheme/etc/cu
В Пнд, 29/01/2007 в 03:44 -0800, Trigve Siver пишет:
> Thanks for reply, Paul
>
> ... I think that only soultion is with custom TreeModel but if it can
> be done with some default TreeModel implementation please could you
> point to some source ...I would be grateful.
>
>
There was some offer
Trigve,
Using custom tree models for this sounds like an overcomplication. I'd
recommend trying a normal tree model and loading data into it instead
of trying to subclass it.
Custom tree models are fairly complicated. I'd avoid using them if possible.
Paul
On 1/28/07, Trigve Siver <[EMAIL PROTE
I finally sorted it out and thought you'd be interested to know my findings.
Indeed, the iterator becomes invalid the moment I modify any column content.
This is despite the structure of the tree model being unaffected i.e. no
rows added or deleted and the edit not affecting any row that affects
No I'm Not. The function that contains the code is connected to the signal
from a GTK Button that is on the form.
John
On 22/12/06, Paul Davis <[EMAIL PROTECTED]> wrote:
John,
You're not by chance accessing these iterators in a
TreeSelection::get_selected() callback are you?
Paul
On 12/22/0
On Fri, 2005-03-25 at 12:18 -0600, Bob Caryl wrote:
> Hello Everyone,
>
> I have had a strange experience working with a Gtk::TreeView. I am
> representing a potential application menu with a Gtk::TreeStore for the
> purpose of allowing the user to edit the menu selections available. One
> of
On Tue, 2005-03-22 at 10:07 -0700, John Taber wrote:
> On Tuesday 22 March 2005 09:35, Murray Cumming wrote:
> > > It is actually very useful if the tree is being used as any sort of list
> > > box.
> >
> > I don't understand. You have a list of colors, for example. You can find
> > out what color
On Tue, 2005-03-22 at 18:43 +0100, Murray Cumming wrote:
> > currently I think this would have to be done:
> > std::string color = row[menuColums.color]
> > if (color == "blue") {...}
> > //if I want to key to somethingelse have to find index of "blue"
>
> An id column will do the same, I think
On Tue, 2005-03-22 at 10:07 -0700, John Taber wrote:
> On Tuesday 22 March 2005 09:35, Murray Cumming wrote:
> > > It is actually very useful if the tree is being used as any sort of list
> > > box.
> >
> > I don't understand. You have a list of colors, for example. You can find
> > out what color
On Tue, 2005-03-22 at 08:11 -0700, John Taber wrote:
> On Tuesday 22 March 2005 03:41, Murray Cumming wrote:
> > Yes, I think it's that difficult. But the row number should not be
> > useful anyway, because the TreeModel is iterator based. It's the same as
> > wanting to get the numerical index of
On Tuesday 22 March 2005 03:43, Murray Cumming wrote:
> Gtk::Widget::set_default_width() might do it, on the TreeView or the
Okay, found it - treeView.set_size_request(w,h) works fine. thks
John
___
gtkmm-list mailing list
gtkmm-list@gnome.org
http://ma
On Tuesday 22 March 2005 03:43, Murray Cumming wrote:
> Gtk::Widget::set_default_width() might do it, on the TreeView or the
myTreeView.set_default_width(150) //doesn't compile
myScrollWindows.set_default_width(150) // doesn't compile
am I missing something?
John
___
On Tuesday 22 March 2005 09:35, Murray Cumming wrote:
> > It is actually very useful if the tree is being used as any sort of list
> > box.
>
> I don't understand. You have a list of colors, for example. You can find
> out what color has been selected. Why do you need to know what
> alphabetical so
On Tuesday 22 March 2005 03:43, Murray Cumming wrote:
> Gtk::Widget::set_default_width() might do it, on the TreeView or the
thks - I don't see that function listed under Widget in the api documentation
- should I be looking somewhere else or is it just missing?
John
_
On Tuesday 22 March 2005 03:41, Murray Cumming wrote:
> Yes, I think it's that difficult. But the row number should not be
> useful anyway, because the TreeModel is iterator based. It's the same as
> wanting to get the numerical index of a std::list.
It is actually very useful if the tree is being
On Tue, 2005-03-22 at 03:23 -0700, John Taber wrote:
> 1) how can I set a min width of a single column tree model that is in a
> scrolled window in a box? I've tried to set the tree view column with no
> effect - currently the column width is appearing much shorter than the
> strings contained
On Tue, 2005-03-22 at 03:30 -0700, John Taber wrote:
> I cannot seem to figure out how to get the selected row number in a tree
> model. I am following the example framework and have:
>
> Gtk::TreeModel::iterator iter = m_refTreeModel->get_iter(path);
> if(iter) {Gtk::TreeModel::Row row = *iter;
27 matches
Mail list logo