pfmt.PARAFORMAT pfmt\cbSize = SizeOf(PARAFORMAT) pfmt\dwMask = #PFM_ALIGNMENT pfmt\wAlignment = #PFA_RIGHT If OpenWindow(0,0,0,500,250,"Window",#PB_Window_SystemMenu|#PB_Window_ScreenCentered) EditorGadget(1,10,10,480,230,0) For a=1 To 10 AddGadgetItem(1,-1,"Teststring",0,0) Next SendMessage_(GadgetID(1),#EM_SETSEL,0,-1) SendMessage_(GadgetID(1),#EM_SETPARAFORMAT,0,pfmt) SendMessage_(GadgetID(1),#EM_SETSEL,0,0) Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow EndIf