Creates a button with the specified text and puts the left side of it where emulation text at the supplied coordinates would be.
If the width value is 0, the button will be sized to fit the text. 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 emulation text at that location is hidden.
Parameters
Text |
The text displayed in the button. |
Row |
The top of the bitmap starts in this text row. |
Column |
The left side of the bitmap starts in this text column. |
Width |
The number of characters in the button text. |
Pressed |
Indicates whether the button has been pressed by the user. |
Format
Button_Create_Emulation ("Text", Row, Column, Width, Pressed)
Example
Script( Button_Create_Emulation_Test )
Boolean( Pressed )
Activate( From_Menu )
Button_Create_Emulation( "Emulation Button", 2, 1, 0, Pressed )
While_Not( Pressed )
Wait_For_Screen_Update
End_While
Button_Remove( "Emulation Button" )
Pressed = FALSE
Return
See Also
Wait_For_Screen_Update, Button_Create_View, Button_Remove, Button_Remove_All, Button_Bitmap_Create_Emulation, Button_Bitmap_Create_View
Was this article useful?
The topic was:
Inaccurate
Incomplete
Not what I expected
Other