Are there template symbols for a window’s x,y & height, width properties?
I could parse the %WindowStatement value to extract the values, but I thought I’d ask first.
TIA
Are there template symbols for a window’s x,y & height, width properties?
I could parse the %WindowStatement value to extract the values, but I thought I’d ask first.
TIA
No. It’s need to parse value of the %WindowStatement symbol.
It’s something like #SET( %X , EXTRACT(%WindowStatement,'AT',1) )
for XPos
To extract the Width and Height from the %WindowStatement which is:
WINDOW,AT(,,158,219),FONT('ARIAL',10,,FONT:regular,CHARSET:ANSI),CENTER,GRAY,DOUBLE
#Set(%STWidth,Extract(%WindowStatement,'AT',3))
#Set(%STHeight,Extract(%WindowStatement,'AT',4))
I’ve never used Extract before and it works very well. I’m guessing it recognises the brackets and comma’s inside the brackets, like a line inside a CSV file.
That was very easy so Thanks!