Creating text with a transparent background is a problem that’s probably as old as the merry Palm OS function WinDrawChars. Many developers(including me) used abstruse techniques to create it(I used a bitmap lookup table, more on that if anyone is interested) – but I now found the official, PalmSource-approved, Palm TX safe way.

WinPushDrawState();
WinSetDrawMode(winOverlay);
WinPaintChar(char,xpos,ypos);
WinPopDrawState();

Simple, huh…. . And by the way, it really works well – even in the simulator!

Related posts:

  1. On defining multiple pointers in one line
  2. OnBoardC and the glue library – changing control attributes
  3. Globals in DAs
  4. Implementing background music for Palm OS games
  5. Creating Palm OS events

One Response to “Creating text with transparent background”

  1. Hi hi …

    I ve found that too when i started kLauncher … it s always interested to read carrefully the palm os SDK … A lots of good informations are in it.

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting

© 2012 TamsPalm - the Palm OS / web OS Blog Suffusion theme by Sayontan Sinha