comp.lang.ada
 help / color / mirror / Atom feed
From: "ldries46" <bertus.dries@planet.nl>
Subject: Re: Title in Main Window with GtkAda
Date: Sat, 13 Nov 2010 11:11:49 +0100
Date: 2010-11-13T11:11:49+01:00	[thread overview]
Message-ID: <4cde6467$0$6928$703f8584@news.kpn.nl> (raw)
In-Reply-To: <daadc30a-e1b7-4b11-8fdf-73f33c2163c0@k5g2000vbn.googlegroups.com>

Finally did it.
Only by creating a new procedure in the package that initiated the main 
window and calling that from the package where the change was to be 
initiated. I do think the less nice way, but it worked.

"Phil Thornley" <phil.jpthornley@gmail.com> schreef in bericht 
news:daadc30a-e1b7-4b11-8fdf-73f33c2163c0@k5g2000vbn.googlegroups.com...
> 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 10:11 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
2010-11-13 10:11         ` ldries46 [this message]
replies disabled

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