SETFOCUS Example


Example:

 

BUTTON1

BUTTON

 

CHECK1

CHECKGRP

 

DIAL1

DIALOG

 

SEQ

FORM

"-1"

PREV

FORM

"-4"

WIN1

WINDOW

 

  

...

 

EXAMPLE1

SETFOCUS

BUTTON1

  

...

 

EXAMPLE2

SETFOCUS

CHECK1,4

  

...

 

EXAMPLE3

SETFOCUS

DIAL1,3

  

...

 

EXAMPLE4

SETFOCUS

WIN1,SEQ

  

...

 

EXAMPLE5

SETFOCUS

WIN1,PREV

 

The instruction labeled EXAMPLE1 changes the current focus to the button object specified as BUTTON1.

 

The instruction labeled EXAMPLE2 changes the current focus to the fourth item in the CHECKBOX group specified by CHECK1.

 

The instruction labeled EXAMPLE3 changes the current focus to the third object in the DIALOG specified by DIAL1. Each of the objects should already have been CREATEd and ACTIVATEd.

 

Example 4 moves the focus to the next object in the TABID order.

 

Example 5 moves the focus to the previous object in the TABID order.

 



PL/B Language Reference SETFLAG Examples SETITEM Examples