Doing my swede in
BlitzMax Forums/BlitzMax Beginners Area/Doing my swede in
| ||
hi guys Do not no why it is not printing the button i have clicked on. |
| ||
th text is printed on the screen, but it is black and visible only for a moment. Try this change to see it:Function ButtonEvent(id)'; Call the Button by its id number SetColor 255,255,255 Print "YES" + id Select id Case 0 DrawText "Button hit" + id ,200,100 .... You could optimize your buttons by integrating the functions into the type. Encapsulate the code relating the buttons has a lot of advantages: 1. You need not write the header "button." in front of each variable. 2. The function names and variables will never collide with other names in your code. 3. The code keeps closed together like in a class |
| ||
Thanks Midimaster it was the color command. for the life of me i didnt see it |