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] Windows-style Input-Boxes

Author
Message
RedFlames
16
Years of Service
User Offline
Joined: 25th Aug 2007
Location: Germania
Posted: 31st Jul 2008 16:41 Edited at: 31st Jul 2008 16:42
Well i had this code done for a half year and didnt really use it because the input was done via inkey$() (it was really... bad ) but now i needed this code and finally changed it to use entry$().

It'll need Matrix1Utils but maybe i can convert it to "true" DBP-Code (although everyone should have Matrix1utils, its essential )

Well here is the code, enjoy:


Sixty Squares
17
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 31st Jul 2008 21:49 Edited at: 31st Jul 2008 21:49

Attachments

Login to view attachments
RedFlames
16
Years of Service
User Offline
Joined: 25th Aug 2007
Location: Germania
Posted: 1st Aug 2008 19:16 Edited at: 2nd Aug 2008 18:08
Ok now i took the Code and modified it, now it is...
Buttons!!
- only activated on mouse-release while mouse is over them
- if u click and hold on a button it'll stay down even if u move the mouse
- if u then releae the mouse on an other button none of them returns "pressed"

Example/Code:


Oh and thanks sixty squares


Edit:
Added Cursor-moving for Inputs!!
now you can move the cursor either by clicking or by Right/leftkey

[New Code: ]


Login to post a reply

Server time is: 2024-05-18 11:57:08
Your offset time is: 2024-05-18 11:57:08