Difference between revisions of "Button Command"
From GeoGebra Manual
m |
|||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version= | + | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}} |
;Button[ ] | ;Button[ ] | ||
:Creates a new [[Action Objects#Buttons|button]]. | :Creates a new [[Action Objects#Buttons|button]]. | ||
Line 5: | Line 5: | ||
;Button[ <nowiki><</nowiki>Caption<nowiki>></nowiki> ] | ;Button[ <nowiki><</nowiki>Caption<nowiki>></nowiki> ] | ||
:Creates a new [[Action Objects#Buttons|button]] with given [[Labels and Captions|caption]]. | :Creates a new [[Action Objects#Buttons|button]] with given [[Labels and Captions|caption]]. | ||
+ | :{{example|1=<div><code><nowiki>Button["Ok"]</nowiki></code> creates a button in the left upper corner of the [[File:Menu view graphics.svg|link=|16px]] [[Graphics View]] with the caption ''Ok''.</div>}} |
Revision as of 10:20, 17 August 2015
- Button[ ]
- Creates a new button.
- Button[ <Caption> ]
- Creates a new button with given caption.
- Example:
Button["Ok"]
creates a button in the left upper corner of the Graphics View with the caption Ok.