"Writing" to an OpenWindow() ?

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Branston.

I'm using the OpenWindow() command to create a window.

I want to draw some graphics (consisting of individual pixels) into this window but I'm not sure how to do this. I would also like to 'Print'/Write some text into this same window. What are the correct commands to do this?

My apologies in advance if these are very obvious/silly questions but I am very new to PB. :)

(I know I can Print directly into an Openconsole() window)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Branston.

Oops! I just worked it out. For the plotting part I do this..

StartDrawing(WindowOutput())
Plot(10, 10 ,RGB(0,0,0))
StopDrawing()

.. and for the text part, I do this

DrawText("Some text")
Post Reply