Discuss PocketC for Palm OS (including Desktop Edition)

Postby fembot1966 on Thu Sep 13, 2007 10:10 pm


Do the colors only work in grahic mode? I couldn't get the background, foreground and text colors with any of the functions to work. I tried writing things with alert() and puts() but it just came out regular black on white. Do you have to clear the screen some how? What are the range of values for R, G and B? I got the foreground color to change in sample drawing program. That's why i thought they might only be available in graphic mode.

Posts: 13
Joined: Thu Sep 13, 2007 1:27 pm

Postby dewey on Fri Sep 14, 2007 4:02 am

Yes, these only affect drawing operations.
The ranges for each are 0-255, which is your run-of-the-mill standard 24-bit color space. Of course, most (all?) of the Palm OS devices only support 16-bit and below. The OS will use the nearest color.
Site Admin
Posts: 749
Joined: Sun Oct 21, 2007 5:12 am

Postby mickeyfarren on Sun Sep 23, 2007 7:34 pm

Just on the subject of colours, I tried to compile a file using the library "PToolboxLib" call it compiles ok but when I copied it from my desktop PocketC to the emulator it would not run. It came back with the following error: unable to load library 'Ptoolbox' any idea's were I'm going wrong?
Posts: 5
Joined: Sun Sep 23, 2007 7:22 pm

Postby samps on Sun Sep 23, 2007 7:57 pm

Sounds like the PToolboxLib runtime module is missing on the emulator.
Drag a copy of PToolboxLib.prc and drop it on the running emulator and you should be good to go

Ubuntu user #82
Ubuntu user #82
Posts: 143
Joined: Tue Feb 20, 2001 12:33 am
Location: Australia

Postby mickeyfarren on Mon Sep 24, 2007 4:35 pm

Samps That got it, thanks for the help :D
Posts: 5
Joined: Sun Sep 23, 2007 7:22 pm

Return to PocketC for Palm OS

Who is online

Users browsing this forum: No registered users and 1 guest