Flag #PB_Text_Center on Linux

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
marcoagpinto
Addict
Addict
Posts: 1076
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Flag #PB_Text_Center on Linux

Post 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