forums

TNT Basic Forums > Programming Q&A
buttons
< Last Thread     Next Thread >
Author
Thread        Post A Reply

08-28-2002 19:14

Posted by:
bud

Find more posts by bud

Hi again,
I am having a little bit of trouble with buttons. I have loaded my images and used the new button code but when i run my program my buttons dont show up oes any one have any tips?
Thanks again

08-29-2002 17:18

Posted by:
Charles Robinson

Click Here to Email Charles Robinson   Find more posts by Charles Robinson

Hey, Bud.

Can you post an example of your code for us ?

-Charles

08-30-2002 14:30

Posted by:
bud

Find more posts by bud

Charles,
thank you for your help but i solved the problem, it was just a typo.
Thanks anyway,
bud

08-31-2002 14:43

Posted by:
Mark

Click Here to Email Mark   Find more posts by Mark

Buttons

I have a simmilar problem, but I don't think it's a typo . .

In 'Stick Person Animation' the program runs OK, but the buttons do not appear on screen and it has to be quit manually.

Here is all the relevant code:

draw frame
new button 0,57,92,0,1,1,129 'first no=index next 2 R X and Y co-ordinates
new button 1,57,217,2,3,3,129 '4th and 5th R for when the curser is over the button and when the button is pressed.
new button 2,57,331,4,5,5,129 '3rd is the button normally
int value=poll button click

if value = 0
' button 0 is move left
------------------------------------------
else if value = 1
' button 1 is Move Right
------------------------------------------
else if value = 2
End

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.