Re: Send data on a signal_button_press_event



On Thu, 2007-09-27 at 13:47 +0200, Iker Perez de Albeniz wrote:
> I'am creating DrawingAreas and i want to add an action when i clik on

> (*nDrawingArea).signal_button_press_event
> ().connect(sigc::bind<int>( sigc::mem_fun(*this,
> &colorSelectorWindow::setColor1), colour_p)); 
> 
> void colorSelectorWindow::setColor1(int Color){

bool colorSelectorWindow::setColor1 (GdkEventButton* ev, int Color) {
	....

using bind doesn't remove eliminate the existing prototype for a signal
handler, it just allows you to add extra arguments.






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