Re: Finding the column index for a Gtk::TreeViewColumn from a Gtk::TreeView
- From: Alex Buell <alex buell munted org uk>
- To: Grincha <3rdshift comcast net>
- Cc: gtkmm-list gnome org
- Subject: Re: Finding the column index for a Gtk::TreeViewColumn from a Gtk::TreeView
- Date: Mon, 24 Apr 2006 08:52:53 +0100
On Sun, 23 Apr 2006 22:20:37 -0400 Grincha <3rdshift comcast net> waved
a wand and this message magically appeared:
> have you considered a table?
Right, I've just implemented a Gtk::Table with an array of Gtk::Entry
objects. However, just run into the same problem I experienced with
Gtk::TreeView.
I have this:
m_VPaned.add1(m_Table);
for (int i = 0; i < 9; i++)
for (int j = 0; j < 9; j++)
{
m_Entry[i][j].set_width_chars(1);
m_Entry[i][j].set_max_length(1);
m_Entry[i][j].set_text("0");
m_Entry[i][j].signal_activate().connect
(sigc::mem_fun(*this, &SudokuCreater::on_entry_activate));
m_Table.attach(m_Entry[i][j], i, i + 1, j, j +
1); }
and:
void SudokuCreater::on_entry_activate()
{
std::cout << "Contents of " << i << ", " << j << ": " << m_Entry
[i][j].get_text() << "\n"; }
HOW do I know which m_Entry object it is referring to? Is there a way
to pass it the appropriate i and j values?
--
http://www.munted.org.uk
Take a nap, it saves lives.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]