Gamestudio Links
Zorro Links
Newest Posts
Zorro tutorial ideas?
by AndrewAMD. 06/13/26 15:01
Zorro 3.01 recoded MMI function issue
by 11honza11. 06/13/26 11:40
How to select between IB accounts by script?
by Jack_Zodiac. 06/12/26 23:17
Max Number of Strategies in /Strategy folder
by Martin_HH. 06/12/26 08:50
Stooq now requires an API key
by AndrewAMD. 06/11/26 17:55
Z9 getting Error 058
by k_ivan. 06/10/26 14:38
ZorroGPT
by TipmyPip. 06/10/26 13:07
Z12 live performance
by alx. 06/09/26 20:42
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 1,912 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Text input a.k.a writing text like in notepad #260572
04/12/09 05:50
04/12/09 05:50
Joined: Apr 2009
Posts: 3
F
F00PdeD00P Offline OP
Guest
F00PdeD00P  Offline OP
Guest
F

Joined: Apr 2009
Posts: 3
Hey guys, I am new to this forum, and Lite-C, mainly I have been doing VisualBASIC, but I really like Lite-C, I am creating a small program that recreates what DOS was like just for fun and for practice, and obviously I need the user to be able to type text. I searched and looked at the tuts but I could't find anything, so if anyone could tell me the command(s) for text input, I would appreciate it, thanks. smile

Re: Text input a.k.a writing text like in notepad [Re: F00PdeD00P] #260587
04/12/09 09:13
04/12/09 09:13
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
inkey

check the manual


3333333333
Re: Text input a.k.a writing text like in notepad [Re: Quad] #260592
04/12/09 09:26
04/12/09 09:26
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
INkey, with text , and WRAP flag.

Re: Text input a.k.a writing text like in notepad [Re: MMike] #260628
04/12/09 16:21
04/12/09 16:21
Joined: Apr 2009
Posts: 3
F
F00PdeD00P Offline OP
Guest
F00PdeD00P  Offline OP
Guest
F

Joined: Apr 2009
Posts: 3
Could some one give me an example code snippet for Lite-C, I looked in the manual and I just copied it in my project but it didn't work, it had build errors, so if some could give me a simple example it would be much appreciated.

Re: Text input a.k.a writing text like in notepad [Re: F00PdeD00P] #260631
04/12/09 16:56
04/12/09 16:56
Joined: Apr 2009
Posts: 3
F
F00PdeD00P Offline OP
Guest
F00PdeD00P  Offline OP
Guest
F

Joined: Apr 2009
Posts: 3
Hey, 1 more question smile I have a bitmap font, and a string with text using that font. It was working fine until I wanted to test it again just to see how it looked, now when I do a test run, it tells me there is a syntax error at line 16, which is the font.
Quote:
FONT* system_font = "system.pcx";

That is line 16 and there is no syntax error because it was working fine a minute ago, and the syntax checker says everything is fine, could someone help me out, this is pretty frustrating. Here is all my code.
Quote:
#include <acknex.h>
#include <default.c>

video_mode = 7;
screen_color.red = 0;
screen_color.green = 0;
screen_color.blue = 0;

mouse_mode = 0;

STRING* username_ask = "USERNAME";
STRING* password_ask = "PASSWORD";
STRING* access_den = "**ACCESS DENIED**";
STRING* access_gra = "**ACCESS GRANTED**"

FONT* system_font = "system.pcx";
FONT* system02_font = "system02.pcx";

TEXT* username_txt =
{
pos_x = 300;
pos_y = 150;
font = system_font;
string (username_ask);
flags = VISIBLE;
}
TEXT* password_txt =
{
pos_x = 300;
pos_y = 350;
font = system_font;
string (password_ask);
flags = VISIBLE;
}

TEXT* access_gra =
{
pos_x = 300;
pos_y = 350;
font = system_font;
string (access_gra);
flags = VISIBLE;
}

TEXT* access_den =
{
pos_x = 300;
pos_y = 350;
font = system_font;
string (access_den);
flags = VISIBLE;
}


Last edited by F00PdeD00P; 04/12/09 17:00.
Re: Text input a.k.a writing text like in notepad [Re: F00PdeD00P] #260649
04/12/09 19:20
04/12/09 19:20
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
the error is this line :

STRING* access_gra = "**ACCESS GRANTED**"

you forgot the last -> ; , thats why it said its wrong sintaxe, because the line before is expected to end, and not continue.


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