From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: GtkAda callback and event
Date: Fri, 10 Sep 2021 22:58:06 +0200 [thread overview]
Message-ID: <shggst$nv$1@gioia.aioe.org> (raw)
In-Reply-To: 613bc32d$0$27421$426a74cc@news.free.fr
On 2021-09-10 22:42, DrPi wrote:
> I didn't think I can extend the widget type to add my own parameters.
Not only for parameters.
Even more frequent purpose is a composite widget. E.g. consider a text
edit widget with a scroll bar, a menu, some buttons etc. Typically, you
would take some existing widget and derive your widget from there.
In the Initialize you will create all other widgets and pack them into
the widget (if it is a container) or Ref them otherwise. In Gtk_New you
will have custom parameters.
This new widget you could use just as any built-in widget.
Moreover, you can create a new class for your derived widget and add new
events, properties and styles for external parametrization etc. The
styles can be set via CSS.
It is a very powerful and versatile mechanism GtkAda offers.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2021-09-10 20:58 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-04 21:39 GtkAda callback and event DrPi
2021-09-04 22:29 ` Dmitry A. Kazakov
2021-09-05 13:50 ` DrPi
2021-09-05 14:48 ` Dmitry A. Kazakov
2021-09-05 14:58 ` DrPi
2021-09-05 15:04 ` DrPi
2021-09-05 15:12 ` Dmitry A. Kazakov
2021-09-05 15:20 ` DrPi
2021-09-05 15:53 ` Dmitry A. Kazakov
2021-09-05 20:49 ` DrPi
2021-09-09 6:56 ` Emmanuel Briot
2021-09-09 7:57 ` DrPi
2021-09-09 18:41 ` Jere
2021-09-09 19:58 ` Dmitry A. Kazakov
2021-09-09 21:01 ` Jere
2021-09-10 6:38 ` Dmitry A. Kazakov
2021-09-10 6:56 ` Emmanuel Briot
2021-09-10 20:42 ` DrPi
2021-09-10 20:58 ` Dmitry A. Kazakov [this message]
2021-09-11 7:38 ` Emmanuel Briot
2021-09-11 15:24 ` DrPi
2021-09-11 15:56 ` Dmitry A. Kazakov
2021-09-12 7:08 ` AdaMagica
2021-09-12 8:52 ` Dmitry A. Kazakov
2021-09-12 13:00 ` DrPi
2021-09-12 13:57 ` Dmitry A. Kazakov
2021-09-10 20:46 ` Dmitry A. Kazakov
2021-09-11 7:36 ` Emmanuel Briot
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox