Почему не работает этот код? Неужели нельзя связать клик с текстовым гаджетом?
Enumeration
#Window_0
EndEnumeration
;- Gadget Constants
;
Enumeration
#Text_0
EndEnumeration
Procedure Open_Window_0()
If OpenWindow(#Window_0, 216, 0, 600, 300, "New window ( 0 )", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar )
TextGadget(#Text_0, 130, 55, 405, 185, "hghghfghfhgfghfghfghfghfghg")
EndIf
EndProcedure
Open_Window_0()
Repeat
ev=WaitWindowEvent()
If ev= #PB_Event_Gadget
If EventGadget()=#Text_0
End
EndIf
EndIf
Until ev=#PB_Event_CloseWindow