I try to always center a text in a TextGadget, but without succes

That's works when they are one line thanks to the #SS_CENTERIMAGE but if i use this constant, the multiline not works

Code: Select all
Enumeration
#Form0
#Label0
#Bouton0
EndEnumeration
OpenWindow(#Form0, 642, 252, 394, 100, "New window ( 0 )", #PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_TitleBar )
TextGadget(#Label0, 20, 2, 357, 48, "Short text", #PB_Text_Center|#PB_Text_Border|#SS_CENTERIMAGE)
ButtonGadget(#Bouton0, 82, 70, 235, 26, "ChangeText")
Repeat
Evenement = WaitWindowEvent()
EvenementGadget = EventGadget()
EvenementType = EventType()
Select Evenement
Case #PB_Event_Gadget
If EvenementGadget = #Bouton0
SetGadgetText(#Label0, "I'm a long text, and i want to be in the middle of the TexGadget." + #CRLF$ + "But apparently this donkey of KCC cannot force me to do this")
EndIf
EndSelect
Until Evenement = #PB_Event_CloseWindow