PSS ID Number: 124027
Article Last Modified on 11/2/1999
C Compile options needed: /MW
C Link with modified library LLIBFEW.LIB
interface to integer*2 function getfocus
+ [PASCAL,alias:'GetFocus']()
end
interface to integer*2 function setfocus
+ [PASCAL,alias:'SetFocus'](i)
integer*2 i
end
include'fgraph.fi'
include'fgraph.fd'
integer*2 i, texthandle, graphicshandle, getfocus, setfocus
C Get handle for the current window (assumed to be the text window)
texthandle = getfocus()
C Create graphics window and get it's handle
i=setvideomode($sres256color)
C This is NOT the same handle as returned from WGGETACTIVEQQ
graphicshandle=getfocus()
C Set focus to text window
i = setfocus(texthandle)
write(*,*) "Hit <Enter> to continue"
read(*,*)
C Set focus to graphics window
i=setfocus(graphicshandle)
end
Additional query words: kbinf 5.10
Keywords: KB124027
Technology: kbAudDeveloper kbFORTRAN510DOS kbFortranSearch kbZNotKeyword3