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 / [DBP] - Simple GUI - Code to make buttons

Author
Message
The Freezer Power
15
Years of Service
User Offline
Joined: 22nd Jun 2008
Location:
Posted: 15th Jun 2013 18:10
First; i'm not so good at English so probably I will mistake a lot of grammar. Anyway I will try to introduce the code.

This programm is an easy code to make buttons for your programs (probable you will need to add a "SYNC" in the FUNCTION PulsarBoton (Press Button) if you try to add this into your programms).

The mechanical is simple. You press returnkey, and the programm will create a random button that you can Press with the mouse left click.

I hope you'll like it. And sorry about my English.



Sorry. I´m not speak English very well.
feiting shadow
17
Years of Service
User Offline
Joined: 12th Sep 2006
Location:
Posted: 4th Jul 2013 09:47
Your English isn't bad, no worries!

Also, your code is pretty easy to read with a bit of Spanish knowledge.

Hacer = make, Crear = Create, Pulsar = Push, Mensaje seems to be text (message).

I like your abstraction. You take the complex areas and put them into one-line calls.

If you want to test yourself, try to imitate Sixty Squares:
http://forum.thegamecreators.com/?m=forum_view&t=95831&b=5

or mine:
http://forum.thegamecreators.com/?m=forum_view&t=147335&b=6

A GUI is not easy, try to make a slider next. It will give you a sense of input that doesn't stand still, and lets you place the callback function at a good spot (the way to tell what value it is and when it changed)

Signed
------

Login to post a reply

Server time is: 2024-03-28 11:35:12
Your offset time is: 2024-03-28 11:35:12