ButtonGadget3D()
语法
Result = ButtonGadget3D(#Gadget3D, x, y, Width, Height, Text$)概要
Creates a button gadget in the current GadgetList.
参数
#Gadget3D A number to identify the new 3D gadget. #PB_Any can be used to auto-generate this number. x, y, Width, Height The position and dimensions of the new gadget. Text$ The text to display on the button.
返回值
Nonzero on success, zero otherwise. If #PB_Any was used as the #Gadget3D parameter then the return-value is the auto-generated gadget number on success.
Remarks
To add a 'mini help' to this gadget, use GadgetToolTip3D().
The following functions can be used to control the gadget:
- SetGadgetText3D(): Changes the text of the ButtonGadget.
- GetGadgetText3D(): Returns the text of the ButtonGadget.
参阅
GadgetToolTip3D(), SetGadgetText3D(), GetGadgetText3D()
已支持操作系统
所有