From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Date: Fri, 30 Sep 2022 14:27:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: variable text for button Newsgroups: comp.lang.ada References: Content-Language: en-GB From: ldries46 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Organization: KPN B.V. Path: eternal-september.org!reader01.eternal-september.org!paganini.bofh.team!pasdenom.info!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!193.141.40.65.MISMATCH!npeer.as286.net!npeer-ng0.as286.net!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe006.abavia.com!abp003.abavia.com!news.kpn.nl!not-for-mail Injection-Date: Fri, 30 Sep 2022 14:27:04 +0200 Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com" X-Received-Bytes: 1667 Xref: reader01.eternal-september.org comp.lang.ada:64462 List-Id: 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.