Page 1 of 2

Soft input panel

PostPosted: Nov 1, 2002 @ 5:53pm
by masCh
I am literally pulling hair outta my head. I read Conan's idea about making our own SIP but i cant for the life of me figure out HOW to do it.

All I have now is I can detect what box is being hit on my simple SIP but I cant put that char in a string. I always get 'cant convert char * to const char' and things like that.

Okay lets say i hit the letter T on the sip, how do i assign char keyhit="T"? and if i hit Y then keyhit="Y"? The only idea is to test each rect using "if" but that would make more than 36 "if" statements.

Then how to save that char in a string? I tried..
char *dname;
strcat(dname[strlen(dname)],keyhit);
and it doesnt give the slightest indication of it working.

All I need is a dialog to popup that asks "what is your name?" and the user can enter text and the value saved to a string called dname after pressing enter. I dont even know how to display what the current value of dname is on the screen..(current value means before pressing enter)

Is there any sample code that can achieve this? I can only learn by example not by theory. I wont know how to pocketfrog if there was no blitsample.

Please please point me in the right direction. Keep in mind I dont know C++, I only know pocketfrog. And not much at that either. =(

Thanks a million in advance for ANY help you can give me!

masCh

PostPosted: Nov 1, 2002 @ 6:21pm
by Pam

Soft input panel

PostPosted: Nov 1, 2002 @ 7:36pm
by BurningSheep

Soft input panel

PostPosted: Nov 1, 2002 @ 9:01pm
by Conan

.

PostPosted: Nov 2, 2002 @ 12:42am
by masCh

Soft input panel

PostPosted: Nov 2, 2002 @ 3:14am
by BurningSheep

thecode

PostPosted: Nov 3, 2002 @ 9:14am
by masCh

Posting my code, fixing my links

PostPosted: Nov 3, 2002 @ 10:47am
by Conan

Posting my code, fixing my links

PostPosted: Nov 3, 2002 @ 2:52pm
by BurningSheep

hmm

PostPosted: Nov 4, 2002 @ 4:58pm
by masCh
I dont understand what you mean by teXt rendering, but I think I am mostly interested in being able to display variables on screen

Mainly I'd just like to be able to ask the user to input something in a teXt boX and be able to display each char as it is being typed with backspace etc working

drawing text on screen

PostPosted: Nov 4, 2002 @ 8:29pm
by Conan

SIP keyboard project files now available

PostPosted: Nov 9, 2002 @ 6:31pm
by Conan
As requested I have uploaded the code for my simple SIP keyboard as a resource to show how to read the keyboard & display the text to the display.

I had to rip this out of a bigger program so ignore any lines which don't seem to belong if I did not cut them all.

Here is the link to my PocketFrog pages:-


Hope this helps. It's not great code but it works & looks good.

cool

PostPosted: Nov 10, 2002 @ 6:20am
by masCh
i wont be able to try out your code as i'm outstationed till the end of the week. thanks though i will definitely give it a try and figure out how its done. awesome!

Strings in C++

PostPosted: Nov 13, 2002 @ 3:44pm
by adde

STL Strings etc

PostPosted: Nov 13, 2002 @ 4:12pm
by Conan