Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (Joey, flink, AndrewAMD, ozgur, Ayumi), 1,195 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
inkey and multipe text lines #154551
09/16/07 15:47
09/16/07 15:47
Joined: Jul 2006
Posts: 96
C
ChildeHarold Offline OP
Junior Member
ChildeHarold  Offline OP
Junior Member
C

Joined: Jul 2006
Posts: 96
is it possible to use inkey as a trigger for a text editor, that means:
can you have mutiple lines of text?
I had crashes when I tried to strcat some "\n" enline mark to the iney text,
so I doubt if it is possible.

But maybe there is somebody who has tried that already.

Re: inkey and multipe text lines [Re: ChildeHarold] #154552
09/18/07 03:57
09/18/07 03:57
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline
User
MrCode  Offline
User
M

Joined: Mar 2007
Posts: 677
0x00000USA
I actually managed a small text editor. it's definitely possible to str_cat a \n.

Code:

function line_feed()
{
str_cat(new_line,"\n");
wait(1);
inkey(new_line);
}

...

on_enter= line_feed;



However, this code will only work when inkey(); is disabled, so you have to hit enter twice (one to exit inkey, and the other to execute line_feed()).

Last edited by MrCode; 09/18/07 04:00.

Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}

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