This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Soft input panel


Soft input panel

Postby masCh » Nov 1, 2002 @ 5:53pm

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
masCh
pm Member
 
Posts: 38
Joined: Oct 14, 2002 @ 6:43pm


Postby Pam » Nov 1, 2002 @ 6:21pm

All the easy problems have been solved.
User avatar
Pam
pm Insider
 
Posts: 449
Joined: Jan 24, 2002 @ 10:30pm
Location: Ohio


Soft input panel

Postby BurningSheep » Nov 1, 2002 @ 7:36pm

Do you want custom Snails levels? Click
User avatar
BurningSheep
pm Insider
 
Posts: 1226
Joined: Apr 12, 2002 @ 11:49pm
Location: The Netherlands


Soft input panel

Postby Conan » Nov 1, 2002 @ 9:01pm

What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


.

Postby masCh » Nov 2, 2002 @ 12:42am

masCh
pm Member
 
Posts: 38
Joined: Oct 14, 2002 @ 6:43pm


Soft input panel

Postby BurningSheep » Nov 2, 2002 @ 3:14am

Do you want custom Snails levels? Click
User avatar
BurningSheep
pm Insider
 
Posts: 1226
Joined: Apr 12, 2002 @ 11:49pm
Location: The Netherlands


thecode

Postby masCh » Nov 3, 2002 @ 9:14am

masCh
pm Member
 
Posts: 38
Joined: Oct 14, 2002 @ 6:43pm


Posting my code, fixing my links

Postby Conan » Nov 3, 2002 @ 10:47am

What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Posting my code, fixing my links

Postby BurningSheep » Nov 3, 2002 @ 2:52pm

Do you want custom Snails levels? Click
User avatar
BurningSheep
pm Insider
 
Posts: 1226
Joined: Apr 12, 2002 @ 11:49pm
Location: The Netherlands


hmm

Postby masCh » Nov 4, 2002 @ 4:58pm

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
masCh
pm Member
 
Posts: 38
Joined: Oct 14, 2002 @ 6:43pm


drawing text on screen

Postby Conan » Nov 4, 2002 @ 8:29pm

What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


SIP keyboard project files now available

Postby Conan » Nov 9, 2002 @ 6:31pm

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.
What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


cool

Postby masCh » Nov 10, 2002 @ 6:20am

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!
masCh
pm Member
 
Posts: 38
Joined: Oct 14, 2002 @ 6:43pm


Strings in C++

Postby adde » Nov 13, 2002 @ 3:44pm

User avatar
adde
pm Member
 
Posts: 152
Joined: Oct 9, 2002 @ 1:42pm
Location: Stockholm / Sweden


STL Strings etc

Postby Conan » Nov 13, 2002 @ 4:12pm

What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Next

Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron