Re: [gtkmm] Dialog boxes



On Sat, 2002-11-30 at 22:24, Barnaby Gray wrote:
> Hi,
> 
> I'm the author of the ICQ client ickle, and in the process of porting
> it to gtkmm2, after getting too hacked off with 'limitations' of CTree
> in gtkmm1.2. No doubt I'll probably have quite a few questions as I
> progress, but I start with a simple one:
> 
> Gtk::Dialog has the virtual method on_response for the buttons added
> with add_button to callback. I'm not entirely sure if I'm going about
> this the right way, but if I add my own button with add_button, and
> override on_response (calling the base one as a last resort) what
> value can I use for the response_id? Or is this the wrong way to go
> about it, and I should just create the button myself, and connect up
> to signal_clicked() ?

You probably want to use
dialog.add_button(name, response);
and
response = dialog.run();

I recently updated the Dialog chapter in the book, by the way.

-- 
Murray Cumming
murray usa net
www.murrayc.com




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