Sdl notepad

hi ! im new here also new on SDL program…

i want to make little notepad inside my SDL game…

jus to write some text, im using SDL_ttf…

how to do that ?

i think that i need use SDL_PollEvent(&event) and event.type == SDL_KEYDOWN

but dont know how to do it

need you help guys !

thanks !

hi ! im new here also new on SDL program…
i want to make little notepad inside my SDL game…
jus to write some text, im using SDL_ttf…
how to do that ?
i think that i need use SDL_PollEvent(&event) and event.type == SDL_KEYDOWN
but dont know how to do it
need you help guys !
thanks !

A question like this was very recently asked. Read up on the topic “how to ask a player for his name and store it in a variable?”. There’s some good example code in there. As for actually writing the text, the package should have example code.

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/ms-tnef
Size: 3862 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040505/c25b042e/attachment.bin

i will try find it on the website, because i dont receive this msg.> ----- Original Message -----

From: bjc9019@rit.edu (Brian Cody)
To:
Sent: Wednesday, May 05, 2004 11:07 AM
Subject: RE: [SDL] sdl notepad

hi ! im new here also new on SDL program…
i want to make little notepad inside my SDL game…
jus to write some text, im using SDL_ttf…
how to do that ?
i think that i need use SDL_PollEvent(&event) and event.type ==
SDL_KEYDOWN

but dont know how to do it
need you help guys !
thanks !

A question like this was very recently asked. Read up on the topic “how
to ask a player for his name and store it in a variable?”. There’s some
good example code in there. As for actually writing the text, the package
should have example code.

Brian, what is “winmail.dat”?
(Your message had that file attached)

// Alexander Bussman

Did it? The echo of my mail back to me did not appear to have it. I’m mailing from a web interface to a MS Exchange server so I’m not really surprised. (Actually I’m mailing from a Red Hat OS running a Win2k terminal connecting to a web interface to an exchange server… I’m sure that’s exactly what MS had in mind :wink:
If this keeps up I’ll either have to wait until I’m off work to send a message, or do it from their own web interface.-----Original Message-----
From: sdl-admin at libsdl.org on behalf of Alexander Bussman
Sent: Wed 2004-05-05 10:25
To: sdl at libsdl.org
Cc:
Subject: Re: [SDL] sdl notepad

Brian, what is "winmail.dat"?
(Your message had that file attached)

// Alexander Bussman

_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/ms-tnef
Size: 3826 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040505/fffaf945/attachment.bin

here you go:

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:
80/support/kb/articles/Q138/0/53.ASP&NoWebContent=1> ----- Original Message -----

From: sdl-admin@libsdl.org [mailto:sdl-admin at libsdl.org]On Behalf Of
Alexander Bussman
Sent: 05 May 2004 15:26
To: sdl at libsdl.org
Subject: Re: [SDL] sdl notepad

Brian, what is “winmail.dat”?
(Your message had that file attached)

// Alexander Bussman


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Hello!

There recently was a thread called “how to ask a player for his name and
store it in a variable”. This is probably what you want…

BTW, I have written something similar for myself, so if you need the
source code, drop me a line. (It’s GPL code)

Regards,
Bernhard

Ricardo Rodrigues wrote:> hi ! im new here also new on SDL program…

i want to make little notepad inside my SDL game…

jus to write some text, im using SDL_ttf…

how to do that ?

i think that i need use SDL_PollEvent(&event) and event.type == SDL_KEYDOWN

but dont know how to do it

need you help guys !

thanks !

i will really apreciate this !> ----- Original Message -----

From: bernhard.bliem@chello.at (Bernhard Bliem)
To:
Sent: Wednesday, May 05, 2004 12:02 PM
Subject: Re: [SDL] sdl notepad

Hello!

There recently was a thread called “how to ask a player for his name and
store it in a variable”. This is probably what you want…

BTW, I have written something similar for myself, so if you need the
source code, drop me a line. (It’s GPL code)

Regards,
Bernhard

Ricardo Rodrigues wrote:

hi ! im new here also new on SDL program…

i want to make little notepad inside my SDL game…

jus to write some text, im using SDL_ttf…

how to do that ?

i think that i need use SDL_PollEvent(&event) and event.type ==
SDL_KEYDOWN

but dont know how to do it

need you help guys !

thanks !


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Alexander Bussman wrote:

Brian, what is “winmail.dat”?
(Your message had that file attached)

// Alexander Bussman

From the bottom of the source of his email…

This is a multi-part message in MIME format.

------_=_NextPart_001_01C432AF.911A489B
Content-Type: application/ms-tnef;
name="winmail.dat"
Content-Transfer-Encoding: base64

eJ8+IgsOAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAENgAQAAgAAAAIAAgABBYAD
snip
PgAAAAB63w==

------_=_NextPart_001_01C432AF.911A489B–

In short, it’s a rich text version of the same email.
Brian could ask his MS Exchange server manager to change the options, and tell
it to only send plain text to avoid this…

more info @ http://agamemnon.ucs.ed.ac.uk/faq/mstnef.html--
John
-------------- next part --------------
A non-text attachment was scrubbed…
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040505/60b4035e/attachment.pgp

Thank you very much. Unfortunately none of the fixes mentioned work for the web interface, but I think if I set that change while hooked directly via VPN they’ll stick for when I use the web interface later on. Forgive the attachments until I can get home and fix it!
I have also emailed the administrator of the exchange server citing the MS support document.-----Original Message-----
From: sdl-admin at libsdl.org on behalf of Kostas Kostiadis
Sent: Wed 2004-05-05 10:59
To: sdl at libsdl.org
Cc:
Subject: RE: [SDL] sdl notepad

here you go:

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:
80/support/kb/articles/Q138/0/53.ASP&NoWebContent=1



-----Original Message-----
From: sdl-admin at libsdl.org [mailto:sdl-admin at libsdl.org]On Behalf Of
Alexander Bussman
Sent: 05 May 2004 15:26
To: sdl at libsdl.org
Subject: Re: [SDL] sdl notepad


Brian, what is "winmail.dat"?
(Your message had that file attached)

// Alexander Bussman

_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/ms-tnef
Size: 4226 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040505/25b31e97/attachment.bin

In short, it’s a rich text version of the same email.
Brian could ask his MS Exchange server manager to change the options, and
tell it to only send plain text to avoid this…

more info @ http://agamemnon.ucs.ed.ac.uk/faq/mstnef.html


John

Okay that explains it, I’ve never used a MS Exchange server before.

// Alexander Bussman