Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Buttons with returned values and more

Author
Message
XpMe
20
Years of Service
User Offline
Joined: 8th Jul 2004
Location: Dallas Texas
Posted: 18th Jul 2004 13:41
This is an example of 6 buttons (square,rectangular,circular,
and ellipse)(they move and change colors when pressed) which may
be used for whatever.
You may also load in images anywhere on the buttons to give it
a better look. But keep them small(Something like below 40 pixels wide and below 40 pixels tall) so that they stay inside the button.
And you may insert text anywhere inside the button also.
I figure that some people may need a good example.
It has onscreen information of press values as they occur.
Set your screen at 640x480 or larger to fit the images to screen.
If you reposition the images that are circles as they are created
then keep away from the screen edges of you will get an error if you try to get an image offscreen.
If you un-rem the lines near the end of the source code then
you may also save these images to disk to use later.
I have put comments in the source to help you.
I know that there is many ways to create code and that these buttons could be made to look different.
Created on DBpro v5.5 Tested several times before posting it.
...XpMe
XpMe
20
Years of Service
User Offline
Joined: 8th Jul 2004
Location: Dallas Texas
Posted: 18th Jul 2004 13:44
This is an example to load the 6 buttons if you saved the images
while using the above example. It does not create any image.
It loads them and displays information plus shows the images.
...XpMe

Login to post a reply

Server time is: 2024-11-23 20:05:57
Your offset time is: 2024-11-23 20:05:57