aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitors online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
forum.gifForum - iziBasic - Topic #1453

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

active  Topic # 1453  way to print white text on black background?

23/09/2006 @ 22:56
by Dave O\'Brien

Anonymous



For certain error conditions, I'd like to highlight text.

I currently use GPRINT with a foreground and background color, and that works well for color devices.

However, for older B&W devices (likely with OS < 3.5), the FG and BG colors are not supported (for example, my old Visor with OS 3.1).

Is there a way to print white text on a black background for these older devices?
  Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 1
--------
24/09/2006 @ 17:56
by aldweb

Anonymous

visitor
Hello Dave,

First of all one needs to detect the screen capabilities: the SCREENMODES function will return the best screen mode available on the device. If a null value is returned, then this is a b&w device.

Second, the Palm OS native functions to set and retrieve front and back-colors only work with Palm OS >= 3.5, this is why I have GPRINT check not to work with Palm OS < 3.5.
But it would be easy to extend GPRINT in a next version of iziBasic, for backward compatibility, to draw in normal or inverted mode for old devices.

In the meantime, you may develop a quick PP applet, a little bit like the one I proposed before implementing GPRINT (but much easier and with less code in it), using the WinDrawInvertedChars Palm OS API.

Cheers,


@+
aldweb
Write to aldweb   Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 



 
^ Top ^