Page 1 of 1

Flag #PB_Text_Center on Linux

Posted: Tue Sep 02, 2025 9:06 pm
by marcoagpinto
@Fred

Heya,

Here is the text from the other post: could you make the TextGadget flag #PB_Text_Center on Linux to use the API code someone posted on the forum, which is at the bottom of the source-code below?

Thanks!

Code: Select all

  TextGadget(#TEXT_WINDOW_ABOUT,x,y,ImageWidth(#GLOBAL_IMAGE_ABOUT_PTG_PB_LOGO_BIG)-ImageWidth(#GLOBAL_IMAGE_ABOUT_PTG_PB_LOGO_Z)-10,ImageHeight(#GLOBAL_IMAGE_ABOUT_PTG_PB_LOGO_Z),t$,#PB_Text_Border|#PB_Text_Center)
  SetGadgetColor(#TEXT_WINDOW_ABOUT,#PB_Gadget_BackColor,#White)
  CompilerIf #PB_Compiler_OS=#PB_OS_Linux
    gtk_label_set_justify_(GadgetID(#TEXT_WINDOW_ABOUT), #GTK_JUSTIFY_CENTER)
  CompilerEndIf