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

GapiDraw and cross platform text input


GapiDraw and cross platform text input

Postby Thomas Sempf » Feb 9, 2005 @ 5:14pm

Thomas Sempf
 


Postby InexorableTash » Feb 11, 2005 @ 1:19am

When doing text input you might want to switch from fullscreen (GAPI-based) GapiDraw to windowed (GDI-based). Then you just write a normal Windows Mobile app so far as the SIP is concerned. Asking GAPI to only Flip part of the screen is asking for problems - how big is the SIP, how is Flip implemented on various devices, etc.

And then there is the issue of actually having a text entry panel - I haven't done any SmartPhone programming but rather than trying to recreate the capabilities of a text editor you could create an invisible (offscreen, etc) Edit control and have focus there, and shadow the display of the edit control into the GapiDraw surface (e.g. ask for the text & caret position, rely on notifications to update, etc)

Out of curiosity, how were you planning to handle character rendering? (A GDI font rendering function in GapiDraw would be a handy thing to have around.)
User avatar
InexorableTash
pm Member
 
Posts: 99
Joined: Sep 13, 2002 @ 6:14am


Postby Thomas Sempf » Feb 14, 2005 @ 9:32am

For the character rendering we planned to use GDI functions like DrawText, but I haven't tested yet if it works or not. Text drawing is really a problem at the moment with GapiDraw, because you can't even use the GD DrawText function under Symbian and Win32/PocketPC the same way, due to the fact that _TCHAR is defined as char under Symbain and as wchar under Win32 (the is also true for pathes you use for creating surfaces). So, you have to convert all strings under Symbian from Unicode to ASCII before calling DrawText or CreateSurface. A little bit annoying. Some more advance text rendering support would be warmly welcome; otherwise GD is really nice framework for all kind of programs.
Thomas Sempf
 


Postby Johan » Feb 14, 2005 @ 11:22am

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby Thomas Sempf » Feb 14, 2005 @ 12:00pm

Thomas Sempf
 


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

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