I want to use some GRA functions to create some graphics in my main window. I don't succeed to define the correct presentation space.
At line 190 I added the following to xdemo.prg.
Code: Select all
aLineAttrib := Array( GRA_AL_COUNT )
aLineAttrib[GRA_AL_WIDTH] := 3
aLineAttrib[GRA_AL_COLOR] := 28555199
oPS := XbpPresSpace():new() // it looks as creating a presentation space doesn't work.
graSetAttrLine( oPS, aLineAttrib )
oPs:lockPS()
graLine( oPS, { 50,50 },{ 500,500 } )
oPs:unlockPS()
Code: Select all
Error BASE/2220
Description : Object has no method with this name
Operation : lockPS
Thread ID : 1