Gamestudio Links
Zorro Links
Newest Posts
long time to load data
by qin. 12/29/25 14:06
The new evaluation shell
by jcl. 12/29/25 09:56
about Zorro S (monthly)
by AndrewAMD. 12/29/25 03:24
Xor Memory Problem.
by TipmyPip. 12/26/25 19:14
ZorroFix. ini /data and /log path
by Martin_HH. 12/19/25 21:02
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (Quad), 7,391 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Syndrela, HDRSEO, AOUNZA, digitalboy381, agasior
19190 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 | 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