comp.lang.ada
 help / color / mirror / Atom feed
From: Phil Thornley <phil.jpthornley@gmail.com>
Subject: Re: Title in Main Window with GtkAda
Date: Sat, 13 Nov 2010 00:09:23 -0800 (PST)
Date: 2010-11-13T00:09:23-08:00	[thread overview]
Message-ID: <daadc30a-e1b7-4b11-8fdf-73f33c2163c0@k5g2000vbn.googlegroups.com> (raw)
In-Reply-To: 4cde1632$0$9944$703f8584@news.kpn.nl

On Nov 13, 4:38 am, "ldries46" <bertus.dr...@planet.nl> wrote:
> The problem seems to be the following:
>
> Glade-2 creates a windows variable of the type name_Access which is itself
> a create by
> type name_Access is access all name_Record'Class;
> In the initiate routine Glade uses Set_Title with this type but when use
> Set_Title somewhere else it seems that Set_Title cannot use this type.
> It seems to me that I need a type name_Record. I just cannot find a way to
> get a variable of that type from the type name_Access.
>
> For the record my OS is Windows 7 64 bit

The variable passed to Set_Title must be a Gtk.Window.Gtk_Window,
which is declared as
   type Gtk_Window is access all Gtk_Window_Record'Class;

I've never used Glade, so I can't help with that.  You will only be
able to call Set_Title for this window where the window variable is
visible.

Cheers,

Phil



  reply	other threads:[~2010-11-13  8:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-12 14:20 Title in Main Window with GtkAda ldries46
2010-11-12 15:57 ` Robert Matthews
2010-11-12 16:06   ` Phil Thornley
2010-11-13  4:38     ` ldries46
2010-11-13  8:09       ` Phil Thornley [this message]
2010-11-13 10:11         ` ldries46
replies disabled

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