• Re: variable text for button

    From Dmitry A. Kazakov@21:1/5 to All on Wed Sep 28 12:59:06 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ldries46@21:1/5 to All on Wed Sep 28 12:44:18 2022
    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?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ldries46@21:1/5 to All on Fri Sep 30 14:27:02 2022
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)