ConSetFocus command

 

Usage:

ConSetFocus

 

Legacy Syntax:

CONSOLE SET FOCUS

 

Pseudo-object Syntax:

CON.FOCUS

 

Brings the console window to the foreground and directs the keyboard focus to it.

 

This command is useful only if you also create other windows which may take the keyboard focus from the console. If the console does not have the keyboard focus, ConInputLine, ConInKey$, etc. will not work correctly.

 

Conversion:

 

#IF %DEF(%PB_CC32)

  CONSOLE SET FOCUS

#ELSE

  ConSetFocus

#ENDIF

 

CON.FOCUS or CONSOLE.FOCUS may be substituted for CONSOLE SET FOCUS in programs written for PB/CC 6.

 

See Also: ConInputLine, ConInKey$, ConWaitKey$