Tried using OpenConsole() but the small size makes it too difficult for my old eyes to read, so I've been trying to make use of OpenWindow, but I cant figure out why nothing displays, anyone help?
I copied the simple code below which works fine as a stand-alone, but if I paste my program in there (with prevous Debug or PrintN changed to AddGadgetItem) nothing shows in the editor gadget window. My program still runs as normal in compiled or non-compiled mode, I can even use Debug to monitor the output in non-compiled mode, but the editor gadget remains empty.
(My program simply loads and parses files, loops through calculations and outputs the results to a file, nothing special)
What will be happenning in my code to prevent the editor gadget displaying my text??
Code: Select all
gitem=0
If OpenWindow(0, 0, 0, 1322, 500, "Report")
EditorGadget(0, 8, 8, 1000, 400)
string$="Any old text"
AddGadgetItem(0,gitem,string$)
gitem=gitem+1
string$="and some more text"
AddGadgetItem(0,gitem,string$)
gitem=gitem+1
;--- MY CODE INSERTED HERE ---
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
End