1

I have created glade file GUI.glade and i want to submit the content of the Entry widget on clicking the button using Gtkmm. I made the pointer to entry widget global so that i can access it in signal handler. Can i pass the entry widget as argument to the signal handler?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Gambler
  • 31
  • 4
  • Yes you should be able to do that. The common approach is not that someone "gives you the code". Typically the question asker provides a (preferably compilable and small) code example, and shows what they have tried. Then someone can point out where the problem is. – Jussi Kukkonen Aug 21 '14 at 10:32
  • Ya sorry i was asking for code of demo example but i put wrong words here.I got it how to do that . Using bind() v can bind the arguments.for example :if(pButton) { pButton->signal_clicked().connect( sigc::bind(sigc::ptr_fun(&Handle), pText) ); } Here i have binded Entry widget with the signal_click so that it would be passed as argument to signal handler when button is clicked. – Gambler Aug 22 '14 at 04:47

0 Answers0