Groups | Search | Server Info | Login | Register


Groups > comp.lang.ada > #49476

Re: GtkAda callback and event

From "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Newsgroups comp.lang.ada
Subject Re: GtkAda callback and event
Date 2021-09-10 22:58 +0200
Organization Aioe.org NNTP Server
Message-ID <shggst$nv$1@gioia.aioe.org> (permalink)
References (13 earlier) <shdp09$87k$1@gioia.aioe.org> <f4291006-ea19-4896-b7bc-96ce3c102955n@googlegroups.com> <sheugb$lop$1@gioia.aioe.org> <c9395f4d-e1d3-4c33-80f1-ff86c0cdf7fan@googlegroups.com> <613bc32d$0$27421$426a74cc@news.free.fr>

Show all headers | View raw


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

Back to comp.lang.ada | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

GtkAda callback and event DrPi <314@drpi.fr> - 2021-09-04 23:39 +0200
  Re: GtkAda callback and event "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2021-09-05 00:29 +0200
    Re: GtkAda callback and event DrPi <314@drpi.fr> - 2021-09-05 15:50 +0200
      Re: GtkAda callback and event "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2021-09-05 16:48 +0200
        Re: GtkAda callback and event DrPi <314@drpi.fr> - 2021-09-05 16:58 +0200
          Re: GtkAda callback and event DrPi <314@drpi.fr> - 2021-09-05 17:04 +0200
            Re: GtkAda callback and event "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2021-09-05 17:12 +0200
              Re: GtkAda callback and event DrPi <314@drpi.fr> - 2021-09-05 17:20 +0200
                Re: GtkAda callback and event "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2021-09-05 17:53 +0200
                Re: GtkAda callback and event DrPi <314@drpi.fr> - 2021-09-05 22:49 +0200
                Re: GtkAda callback and event Emmanuel Briot <briot.emmanuel@gmail.com> - 2021-09-08 23:56 -0700
                Re: GtkAda callback and event DrPi <314@drpi.fr> - 2021-09-09 09:57 +0200
                Re: GtkAda callback and event Jere <jhb.chat@gmail.com> - 2021-09-09 11:41 -0700
                Re: GtkAda callback and event "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2021-09-09 21:58 +0200
                Re: GtkAda callback and event Jere <jhb.chat@gmail.com> - 2021-09-09 14:01 -0700
                Re: GtkAda callback and event "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2021-09-10 08:38 +0200
                Re: GtkAda callback and event Emmanuel Briot <briot.emmanuel@gmail.com> - 2021-09-09 23:56 -0700
                Re: GtkAda callback and event DrPi <314@drpi.fr> - 2021-09-10 22:42 +0200
                Re: GtkAda callback and event "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2021-09-10 22:58 +0200
                Re: GtkAda callback and event Emmanuel Briot <briot.emmanuel@gmail.com> - 2021-09-11 00:38 -0700
                Re: GtkAda callback and event DrPi <314@drpi.fr> - 2021-09-11 17:24 +0200
                Re: GtkAda callback and event "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2021-09-11 17:56 +0200
                Re: GtkAda callback and event AdaMagica <christ-usch.grein@t-online.de> - 2021-09-12 00:08 -0700
                Re: GtkAda callback and event "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2021-09-12 10:52 +0200
                Re: GtkAda callback and event DrPi <314@drpi.fr> - 2021-09-12 15:00 +0200
                Re: GtkAda callback and event "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2021-09-12 15:57 +0200
                Re: GtkAda callback and event "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2021-09-10 22:46 +0200
                Re: GtkAda callback and event Emmanuel Briot <briot.emmanuel@gmail.com> - 2021-09-11 00:36 -0700

csiph-web