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=-1.9 required=3.0 tests=BAYES_00,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!aioe.org!epJzlJsZWlp1WuFmYLlBpQ.user.46.165.242.91.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: variable text for button Date: Wed, 28 Sep 2022 12:59:06 +0200 Organization: Aioe.org NNTP Server Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: gioia.aioe.org; logging-data="2538"; posting-host="epJzlJsZWlp1WuFmYLlBpQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader01.eternal-september.org comp.lang.ada:64447 List-Id: On 2022-09-28 12:44, ldries46 wrote: > 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? Enumerate dialog children in the action area? (I am not sure) and find the button there. or create the dialog without buttons, add buttons after that. Dialog add button returns the button it added. or use CSS, which is intended for the purpose of theming the standard buttons. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de