colors and resource forms

A PocketC native palm library offering native forms and assorted utilities

Postby tthkbw on Sat Aug 31, 2002 10:26 pm

I'm using resource forms and would like to create my buttons with colors, for example, a blue background and white foreground text and I'm not getting anywhere.

I used the PickColor() function to figure out the values for my colors and it worked fine. Then I do this:

SetDepth(4);
Fctl(LOAD,MYFORM); //a resource form with buttons
SetFore(WHITE);
SetBack(BLUE);
Fctl(DRAW,MYFORM);

But I don't get any colors.

The SetDepth does not return an invalid code. I am running the 3.5 ROM on POSE. Other apps show on POSE, as do the icons I created for my application.

Help??


tthkbw
tthkbw
 
Posts: 75
Joined: Wed Nov 07, 2001 4:04 pm
Location: USA

Postby jstadolnik on Sun Sep 01, 2002 1:15 am

See the UIColor() function in the forms section.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm
jstadolnik
 
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Postby jstadolnik on Sun Sep 01, 2002 1:15 am

See the UIColor() function in the forms section.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm
jstadolnik
 
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA


Return to Pocket Toolbox

Who is online

Users browsing this forum: No registered users and 3 guests

cron