igiButtonSized

A button of a given size. Takes label (The button's text), w (Width (0 = fit the text)), h (Height (0 = one line)). Returns: 1 on the frame the button is clicked, otherwise 0.

IGI

Parameters & Returns

Parameters

label String
w Int
h Int

Returns

Int

Quick Summary

A button of a given size. Takes label (The button's text), w (Width (0 = fit the text)), h (Height (0 = one line)). Returns: 1 on the frame the button is clicked, otherwise 0.

Technical Exegesis...

A button of a given size.

Call it every frame, between drawing your game and b2dFlip. See the IGI guide.

Returns: 1 on the frame the button is clicked, otherwise 0.

Example

Example.bam
If igiButtonSized("OK", 100, 0) Then CloseDialog()