CodeBase - This is the start of my reuseable GUI (only button included)

Return to the CodeBase listing

Category: Complete Applications

Version: 1.0

0
0

Information

Uploaded: 17th Sep 2009 16:27

Modified: 1st Jan 1970 01:00

Author:  3d point in space

Summary

This creates a button that can be used and checks if the button is pressed. This also can create a sprite and dismiss a certain collar as a button.

Full Description

You can create a button useing<br /> button *b1= new button(1); // creates new button for sprite ID = 1<br /> button *b2= new button();// creates new button<br /> b2-&gt;button1(100,10,&quot;start&quot;);// position button 100 in x direction and 10 y direction with start as text<br /> b2-&gt;changebuttoncol(r,g,b);// change button collar;<br /> b2-&gt;changebuttonborder(w,r,g,b)// change width and outline of button<br /> b2-&gt;changetextcol(r,g,b)//change text collar<br /> b2-&gt;changetext(texttype,size)// change text collar and size

Comments

No comments yet.