How to find out the currently selected display?
How to find out the currently selected display?
I'm searching for a way to determine which display is currently selected. Is this possible?
Re: How to find out the currently selected display?
I guess you have searched the documentation pretty well, and I didn't see anything with a very quick look either.
Maybe something like this as a work-around:
It returns -1 is something else than a display is selected as the output device (brush, bgpic...), so in that case you must end the previous selection.
Maybe something like this as a work-around:
Code: Select all
Function p_GetSelectedDisplay()
Local type, id = GetAttribute(#DISPLAY, 0, #ATTROUTPUTDEVICE)
If type = #DISPLAY Then Return(id) Else Return(-1)
EndFunction