comp.lang.ada
 help / color / mirror / Atom feed
From: ldries46 <bertus.dries@planet.nl>
Subject: Re: variable text for button
Date: Fri, 30 Sep 2022 14:27:02 +0200	[thread overview]
Message-ID: <nnd$1f4ca39d$615cacb0@c9ed6547adf0b651> (raw)
In-Reply-To: <nnd$1c56c8cc$422e5dd4@40cd86d884e1c860>

Op 28-9-2022 om 12:44 schreef ldries46:
> I am using a Gtk_Message Dialog in a surrounding in which I use 
> strings in variable languages. That means that I can switch languages 
> by changing the variable lan, butfor the button I cannot find the 
> parameter to switch the text.
> I now use
> MessageBox := Gtk_Message_Dialog_New(null,
> 1,
> Message_Warning(lan),
> Buttons_Close,
>            Text(lan));
>  MessageBox.Set_Title(Title(lan));
>
> This gives a button with the Close text in the language of the 
> operating system but I want:
> Button_Text(lan) on the button
> How can I do this?
>
>
I found that it works with no Button but using the Add_Button routine 
still let me see an error. but for the moment I am content with the 
Button_None value.


      parent reply	other threads:[~2022-09-30 12:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-28 10:44 variable text for button ldries46
2022-09-28 10:59 ` Dmitry A. Kazakov
2022-09-30 12:27 ` 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