DDgui Programmers Reference Guide by Nicholas J. Kingsley - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

Toolbars

 

Toolbars allow quick creation of buttons with sprites in them, and are created using :

 

DDgui_toolbar(id_buttons$[], id_sprites[])

 

The id$_buttons$[] array contains the list of ID's that will be used to detect button presses, while id_sprites[] array contain the sprite indexes of the sprites to be used.

 

These sprites should be loaded before hand – if not, all you will see are small dots :

 

img11.png

With sprites loaded, the list would look like :

 

img12.png

Note that these buttons are slightly different than sprites in normal buttons.  The button with the mouse over it always has a blue border around it.

 

Which button is pressed can be detected using DDgui_get.