rookie needing help
DF
Posts: 10
I am about 5 days in using the Prop demo board, and have little experience programming in spin or otherwise. In the vga demo programs there are boxes that look like buttons. Is there any way to make these buttons interactive and possibly bring up another screen? I would eventual like a create a start up menu of sorts with different options available. Any pointers at this point would be helpful. Thanks in advance...
Comments
Text based GUI for VGA_HiRes_Text Driver
best regards
Stefan
Yes, I got tricked by that, too. In the demo, those "buttons" are just for show but they are non-functional. Too bad the code in the VGA demo doesn't warn you about those buttons. However, there are indeed ways, as Stefan has indicated, to make VGA buttons or even texts that are clickable with a mouse, etc.
Have fun!
www.rayslogic.com/propeller/Programming/BasicWindowForm/BasicForm.htm
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Pages: Propeller JVM
Welcome to the Propeller and the forums.
The buttons do not work as others have mentioned, they are there to demonstrate that there are special characters in the Propeller Font that display a beveled edge useful for displaying a button.
Transforming the demo into an interactive program is certainly possible but may be a little difficult having just started to learn Spin. What is necessary is a program running on a an unused cog which monitors the mouse driver's button and current location. Comparing these coordinates to the button's coordinates upon a button event and performing the desired reaction.
I would suggest starting off slow. Create the monitoring program and when you detect the button press do something simple like changing the color of the button, the text on the button or changing the colors on the bevel to make it look like the button has been pressed.
From there you can start to tackle more complex behaviors like displaying menus and what not.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker