This code works with PB 5.46 but not with PB5.73 or 6 (WINDOWS)
Any suggestion ?
Code: Select all
Enumeration
#Window_0
EndEnumeration
;}
;{ Gadgets
Enumeration
#Editor_0
EndEnumeration
;}
;}
Procedure OpenWindow_Window_0()
If OpenWindow(#Window_0, 529, 111, 400, 400,"Window_0", #PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MinimizeGadget|#PB_Window_TitleBar|#PB_Window_ScreenCentered)
EditorGadget(#Editor_0, 30, 20, 330, 220)
t$="{\rtf1\ansi\deff0"
t$+"\trowd"
t$+"\cellx1000"
t$+"\cellx2000"
t$+"\cellx3000"
t$+"\intbl cell 1\cell"
t$+"\intbl cell 2\cell"
t$+"\intbl cell 3\cell"
t$+"\row"
t$+"} "
SetGadgetText(#Editor_0,t$)
EndIf
EndProcedure
OpenWindow_Window_0()
;{- Event loop
Repeat
Event = WaitWindowEvent()
Select Event
; ///////////////////
Case #PB_Event_Gadget
Select EventGadget()
Case #Editor_0
EndSelect
; ////////////////////////
Case #PB_Event_CloseWindow
Select EventWindow()
Case #Window_0
CloseWindow(#Window_0)
Break
EndSelect
EndSelect
ForEver