From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a37:9b90:: with SMTP id d138mr5569078qke.450.1575384273431; Tue, 03 Dec 2019 06:44:33 -0800 (PST) X-Received: by 2002:aca:1c0d:: with SMTP id c13mr3645875oic.44.1575384272966; Tue, 03 Dec 2019 06:44:32 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!g89no1473531qtd.0!news-out.google.com!o19ni58qtr.1!nntp.google.com!g89no1473521qtd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 3 Dec 2019 06:44:32 -0800 (PST) In-Reply-To: <2fe91649-4fef-415f-bcfc-cea08cbbc7f2@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2003:d4:ff10:4c01:5445:9f06:f8df:d4b5; posting-account=3zVVBwoAAAC7BSMfgNP7DSbqU9urpt40 NNTP-Posting-Host: 2003:d4:ff10:4c01:5445:9f06:f8df:d4b5 References: <3426e4f7-e5e4-46a7-85c3-ce4a4f538564@googlegroups.com> <2fe91649-4fef-415f-bcfc-cea08cbbc7f2@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3d155f08-defe-4189-8fd2-582a09248743@googlegroups.com> Subject: Re: wanted: expertise with Gtkada.Canvas_View in gtkada 17.0 From: mario.blunk.gplus@gmail.com Injection-Date: Tue, 03 Dec 2019 14:44:33 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:57634 Date: 2019-12-03T06:44:32-08:00 List-Id: On Friday, November 29, 2019 at 1:48:07 PM UTC+1, briot....@gmail.com wrote= : > > does anyone here have expertise with the package Gtkada.Canvas_View ?= =20 >=20 > I wrote it at the time, but I haven't used GtkAda for three years now so > I am a little rusty on the subject. You could still try sending your actu= al > question, maybe other people can help. I'm still playing with my demo at https://github.com/Blunk-electronic/ada_t= raining/tree/master/src/gtkada_8 . The requires library units are in https://github.com/Blunk-electronic/ada_training/tree/master/src/lib . In the package spec Gtkada.Canvas_View you say that in order to customize t= he canvas background, the procedure draw_internal should be overridden (lin= e 53). If I'm correct, this implies extending the type canvas_view_record a= nd overriding draw_internal of the derived type. This is what I did in my d= emo in file gtkada-canvas_view-canvas_test.ads . The derived type is type_v= iew. Right below is the overriding of draw_internal. The actual overriding = takes place in gtkada-canvas_view-canvas_test.adb . Here I'm stuck. So my first question: Do I need the pointer type_view_ptr= that accesses the type_view ? Thanks