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.5 required=5.0 tests=BAYES_00,STOX_REPLY_TYPE autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,64d5f5037bcca019 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!goblin2!goblin.stu.neva.ru!aioe.org!feeder.news-service.com!pfeed08.wxs.nl!newsfeed.kpn.net!pfeed14.wxs.nl!pfeed15.wxs.nl!not-for-mail From: "ldries46" Newsgroups: comp.lang.ada References: <4cdd4d36$0$8929$703f8584@textnews.kpn.nl> <9MedneAM2sBj_kDRnZ2dnUVZ8gmdnZ2d@brightview.co.uk> <083482db-f5f3-461d-96ef-d794c032ed96@q36g2000vbi.googlegroups.com> In-Reply-To: <083482db-f5f3-461d-96ef-d794c032ed96@q36g2000vbi.googlegroups.com> Subject: Re: Title in Main Window with GtkAda Date: Sat, 13 Nov 2010 05:38:08 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 14.0.8089.726 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726 Message-ID: <4cde1632$0$9944$703f8584@news.kpn.nl> NNTP-Posting-Host: 77.168.179.107 X-Trace: 1289623090 news.kpn.nl 9944 77.168.179.107:54044 X-Complaints-To: abuse@planet.nl Xref: g2news2.google.com comp.lang.ada:16431 Date: 2010-11-13T05:38:08+01:00 List-Id: 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" schreef in bericht news:083482db-f5f3-461d-96ef-d794c032ed96@q36g2000vbi.googlegroups.com... > On Nov 12, 3:57 pm, Robert Matthews 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