sinon ya ca aussi :
Code : Tout sélectionner
OpenWindow(0,0,0,320,240,#PB_Window_SystemMenu|#PB_Window_ScreenCentered,"EditorGadget()")
CreateGadgetList(WindowID())
Frame3DGadget(0,10,10,300,190,"En lecture seule")
EditorGadget(1,20,30,280,160)
ButtonGadget(2,190,208,120,24,"Fermer",#PB_Button_Default)
For i=0 To 50 : AddGadgetItem(1,i,"ligne de test "+Str(i)) : Next
; Méthode (1)
SendMessage_(GadgetID(1),#EM_SETOPTIONS,#ECOOP_OR,#ECO_READONLY)
SendMessage_(GadgetID(1),#EM_SETOPTIONS,#ECOOP_OR,1)
; Méthode (2)
;SendMessage_(GadgetID(1),#EM_SETREADONLY,#TRUE,0)
Repeat
Select WaitWindowEvent()
Case #PB_EventCloseWindow : Break
Case #PB_EventGadget
Select EventGadgetID()
Case 2 : Break
EndSelect
EndSelect
ForEver