;- Screen constants
#SCREEN_WIDTH = 640
#SCREEN_HEIGHT = 480
;- Window Title
Title$ = "Blank Program"
;This is the start of our initialisation section - all we're doing here is setting up some variables & contants that will get used later. The most important constants are #SCREEN_WIDTH and #SCREEN_HEIGHT, as these define the display area.
; Initialistion code...
; 1. create a window
If OpenWindow(#Window_0, 216, 0, #SCREEN_WIDTH, #SCREEN_HEIGHT, #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar | #PB_Window_ScreenCentered , Title$)
;If CreateGadgetList(WindowID())
;EndIf
;EndIf
I am getting an Error with this screen Title$ - number expected instead of string. I am stuck!
Screen size
Re: Screen size
Guess you haven't looked at the PureBasic Help file...
Maybe your code came from a very old online book?Syntax
Result = OpenWindow(#Window, x, y, InnerWidth, InnerHeight, Title$ [, Flags [, ParentWindowID]])
Re: Screen size
