Button_Bitmap_Create_Emulation

Creates a button with the specified bitmap name, and puts the left side of it where emulation text at the supplied coordinates would be.

Each time the button is pressed, the Boolean variable specified will be set to TRUE. You will need to reset the variable if you want to detect future button presses. All buttons created by the script will be removed when the script exits. The Wait_For_Screen_Update action can be used to wait for a button to be pressed.

The button will be hidden if the emulation text at that location is hidden.

You can add bitmaps to the resource file by using the Resource Editor. For information about the Resource Editory, seeWavelink Terminal Emulation Client User Guide. Row-1 is the top line of text on the screen; column-1 is the left-most column of text on the screen.

Parameters

Bitmap Name

The name of the bitmap.

Row

The top of the bitmap starts in this text row.

Column

The left side of the bitmap starts in this text column.

Pressed

Indicates whether the button has been pressed by the user.

Format

Button_Bitmap_Create_Emulation ("Bitmap Name", Row, Column, Pressed)

Example

Script( Button_Bitmap )
Boolean( Pressed )
Activate( From_Menu )
Button_Bitmap_Create_Emulation( "GOCONTROL", 6, 17, Pressed )
While_Not( Pressed )
Wait_For_Screen_Update
End_While
Button_Remove( "GOCONTROL" )
Pressed = FALSE
Return

See Also

Wait_For_Screen_Update, Button_Bitmap_Create_View, Button_Create_Emulation, Button_Create_View, Button_Remove, Button_Remove_All

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal