From: DrPi <314@drpi.fr>
Subject: Re: GtkAda callback and event
Date: Sat, 11 Sep 2021 17:24:41 +0200 [thread overview]
Message-ID: <613cca39$0$29491$426a34cc@news.free.fr> (raw)
In-Reply-To: <shggst$nv$1@gioia.aioe.org>
Le 10/09/2021 à 22:58, Dmitry A. Kazakov a écrit :
> 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.
I already do this.
I don't know why I didn't think to apply this to my own parameters.
>
> 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.
Interesting.
Any pointer on how to use CSS styles ?
>
> It is a very powerful and versatile mechanism GtkAda offers.
>
Even if I just started using GtkAda, I find it very powerful.
The big problem is documentation. Of course, there are the reference
manual and the (small) user guide but I miss a document explaining the
use of all these functionalities.
I found a tutorial in French which is very helpful for starting but it
is outdated.
next prev parent reply other threads:[~2021-09-11 15:24 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
2021-09-11 7:38 ` Emmanuel Briot
2021-09-11 15:24 ` DrPi [this message]
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