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 05:38:08 +0100
Date: 2010-11-13T05:38:08+01:00	[thread overview]
Message-ID: <4cde1632$0$9944$703f8584@news.kpn.nl> (raw)
In-Reply-To: <083482db-f5f3-461d-96ef-d794c032ed96@q36g2000vbi.googlegroups.com>

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

"Phil Thornley" <phil.jpthornley@gmail.com> schreef in bericht 
news:083482db-f5f3-461d-96ef-d794c032ed96@q36g2000vbi.googlegroups.com...
> On Nov 12, 3:57 pm, Robert Matthews <ign...@ramatthews.free-
> online.co.uk> wrote:
>> ldries46 wrote:
>> > I just want to change the Title in the main window of a Gtk ADA
>> > application at the moment of some action, like adding a File name as is
>> > done in Fi Word. Is that possible. IF so how can do I do it?
>>
>> Call Set_Title in Gtk.Window, should do the trick.
>
> That works for me too (MS Windows XP and 7). But the GtkAda RM says:
> "Change the title of the window, as it appears in the title bar. Note
> that on some systems you might not be able to change it. "
>
> So it isn't guaranteed to work.
>
> Cheers,
>
> Phil 




  reply	other threads:[~2010-11-13  4:38 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 [this message]
2010-11-13  8:09       ` Phil Thornley
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