[gtkada] Dialogs package

Emmanuel Briot briot at ACT-Europe.FR
Fri Sep 13 14:14:48 CEST 2002


Preben Randhol <randhol at pvv.org> writes:

> in every program I was thinking to supply this as a special dialog in a
> child package. The call will be so that you can change the text of the
> title and description. Now the problem is how to deal with the buttons.
> Generally I have an Add_Button function where you supply the button
> object and it gets added to the dialog, but here I was thinking to make
> the buttons in the child pack and have the user only specify which
> procedures the buttons should be connected to through callbacks. Does
> this makes sense or not?

You should have a look at the following packages first:

  - Gtkada.Dialogs: does what you seem to want already

  - Gtk.Dialogs in Gtk 2.0. There is an extremely flexible mechanism now to
    add buttons. Nicely done, compared to what was in previous versions

Emmanuel




More information about the gtkada mailing list