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 (kinda) (DBP) - Is this "Art Programming"?

Author
Message
slik72 and 2thirds
19
Years of Service
User Offline
Joined: 30th Aug 2005
Location:
Posted: 3rd Sep 2005 04:13
With this, you can have as many buttons as you like, with whatever text you like, in whatever screen resoltion you like. Now, this is my first piece of serious(ish) programming. So suggestions of how to make this faster/better/anything to improve it really.

The only problem you might come up against is if you have too many buttons, because all the details about each button is printed to the side, so that screws things up.
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 4th Sep 2005 11:38
When I create buttons, I usually make a function.



Immunity and Annihalation makes Immunihalation...
Kohaku
21
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 5th Sep 2005 22:32 Edited at: 6th Sep 2005 04:42
That's interesting. I may use something like that for the framework I'm working on. Save my current "input" method.

Edit:

Well, I'm happy with these buttons, and will be using them in the framework.



Thanks peeps.


You are not alone.
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 6th Sep 2005 19:09
I'm glad I was any help.

Cheers,

Sven

Immunity and Annihalation makes Immunihalation...
Nul error
19
Years of Service
User Offline
Joined: 12th Aug 2005
Location:
Posted: 9th Sep 2005 07:23
very nice function Sven B but if you wanted it to say it pressed the button after you release it like standard buttons how would you do this?
Nul error
19
Years of Service
User Offline
Joined: 12th Aug 2005
Location:
Posted: 9th Sep 2005 11:59
oh sorry my english is not that good sometimes but I made sven function mimic buttons like standard windows. it doesn't work 100% of the time due to the "wait 10" part and it tends to slow down your program.

Login to post a reply

Server time is: 2025-05-16 12:21:30
Your offset time is: 2025-05-16 12:21:30