Re: [glade--]text entry on glagemm



friman wrote:
Hello!
i tried for some days to create a window with textentry and button that when press the butto,, the terminal printed the string in the entry on that time. and i don't know how thw callback of the button know from where it need to get the text, in other words, how can i send the entry to the callback of the button. if someone had code, that made by glademm for that purpose, i will very happy if he will send it to me.
moti

Hi Friman,

Simply attach some data to the callback (signal->data). If you insert 'true' or 'false' you will get a bool argument, if you put a number in, you will get an int, else you will get a string.

Watch the _new files for proposed changes to your files (e.g. window1.hh_new).

   Christof




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