Re: buttons and signal_clicked with sigc::mem_fun and pointers



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks for the link, I haven't read the documentation till this passage...

now the program works fine and the code is:

a_CheckButtons[i-1]->signal_clicked().connect
(
~    sigc::bind<int>
~    ( sigc::mem_fun(*this, &Preferences::on_checkbutton_clicked), i )
);

thanks again
Guglie

rob page ha scritto:

|are you trying to bind an extra argument onto the signal? If you are,
|have a look here.
|
|http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/apbs05.html
|
|Rob.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFCNJ8dZu3DgeMsziwRAv+mAJ4rW243iOlmJIlbKY+kxBn5JoJTAgCgnRjI
J1pOA6uy27Rx2Y3ROQZx6mU=
=r4u3
-----END PGP SIGNATURE-----




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