Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AbrahamR, 1 invisible), 858 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Text box #334574
07/24/10 00:30
07/24/10 00:30
Joined: Jul 2009
Posts: 80
Area 51
F
fangedscorpion Offline OP
Junior Member
fangedscorpion  Offline OP
Junior Member
F

Joined: Jul 2009
Posts: 80
Area 51
I was wondering if there is a way to code a text box into my game. I am looking for something similar to L4D's chat boxes or the console.

Any help would be great thanks!


"Pow! You are dead! Not big suprise!" -Heavy
Re: Text box [Re: fangedscorpion] #334578
07/24/10 00:34
07/24/10 00:34
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
this is what i use on my lib.
Code:
function edit_textbox4(STRING* t){
STRING* char_t="";
inkey_active=0;
wait(1);
str_cpy(t,"clearing...");
wait(-1);
str_cpy(t,"");

loop:
inchar(char_t);

if(key_lastpressed!= 28 && key_lastpressed!=14 && key_lastpressed!=1 ){ if(str_len(t)<=100){ str_cat(t,char_t);} goto loop; }
if(key_lastpressed== 14 ){ str_trunc(t,1);goto loop;}
}



you can constrain the size of characters.
BUT THIS IS NOTA A GUI WINDOWS STYLE TEXTBOX!
For that i think there are other topics on the forum already

Last edited by MMike; 07/24/10 00:35.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1