comp.lang.ada
 help / color / mirror / Atom feed
From: mario.blunk.gplus@gmail.com
Subject: Re: wanted: expertise with Gtkada.Canvas_View in gtkada 17.0
Date: Tue, 3 Dec 2019 06:44:32 -0800 (PST)
Date: 2019-12-03T06:44:32-08:00	[thread overview]
Message-ID: <3d155f08-defe-4189-8fd2-582a09248743@googlegroups.com> (raw)
In-Reply-To: <2fe91649-4fef-415f-bcfc-cea08cbbc7f2@googlegroups.com>

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 ? 
> 
> 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 actual
> question, maybe other people can help.

I'm still playing with my demo at https://github.com/Blunk-electronic/ada_training/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 the canvas background, the procedure draw_internal should be overridden (line 53). If I'm correct, this implies extending the type canvas_view_record and overriding draw_internal of the derived type. This is what I did in my demo in file gtkada-canvas_view-canvas_test.ads . The derived type is type_view. 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


  parent reply	other threads:[~2019-12-03 14:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-29  9:08 wanted: expertise with Gtkada.Canvas_View in gtkada 17.0 mario.blunk.gplus
2019-11-29 12:48 ` briot.emmanuel
2019-11-29 14:36   ` mario.blunk.gplus
2019-12-03 14:44   ` mario.blunk.gplus [this message]
2020-01-20 15:24   ` mario.blunk.gplus
2020-01-20 18:12     ` mario.blunk.gplus
2019-11-30 16:21 ` Alain De Vos
2019-12-18 18:44 ` mario.blunk.gplus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox