Creates a button with the specified text. This command is the same as Button_Create_Emulation except that the screen position is used instead of the text position, allowing the button to always be visible.
If Button_Create_View is used to create a button at position 1,1, that button will always be in the upper-left corner of the Terminal Emulation view screen. A Button_Create_Emulation button will be hidden if the emulation text at that location is hidden. A bottom and/or right value of 1000 represents the bottom or right side of the screen. For example, a button at position 1,900 would start 11 columns left of the upper-right corner of the screen.
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. The Wait_For_Screen_Update action can be used to wait for a button to be pressed. All buttons created by the script will be removed when the script exits.
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_View ("Text", Row, Column, Width, Pressed)
Example
Script( Button_Create_View_Test )
Boolean( Pressed )
Activate( From_Menu )
Button_Create_View( "This is a button", 1, 1, 0, Pressed )
While_Not( Pressed )
Wait_For_Screen_Update
End_While
Button_Remove_All
Return
See Also
Button_Create_Emulation, 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