@DISPLAY vs CreateDisplay arguments
Posted: Tue Jun 18, 2019 12:23 pm
Is there any reason why @DISPLAY does not accept variables for arguments, while CreateDisplay does?
I made an example to show what works.
This will not work, since @DISPLAY does not seem to take any arguments.
Also, @DISPLAY does not accept the argument bgpic = 1
I made an example to show what works.
Code: Select all
mywidth = 600
myheight = 400
mycol = "$959595"
CreateBGPic(1, mywidth-400, myheight-300, #WHITE)
@DISPLAY {width = 800, height = 600, color = #GREEN}
CreateDisplay(2, { Width = mywidth, Height = myheight, color = mycol})
OpenDisplay(2)
CreateDisplay(3, { bgpic = 1})
OpenDisplay(3)
Wait(100)Code: Select all
@DISPLAY { Width = mywidth, Height = myheight, color = mycol})