Page 1 of 1

PostPosted: Wed Nov 28, 2001 4:30 am
by Lars2001
I wrote a program for Palm IIIc (3.5.3) where I wanted a black background. So I uset SetBack(BLACK) and SetTextColor(WHITE) and switched the GUI Colors:
UIColor(0,WHITE); // Object Frame
UIColor(1,BLACK); // Object Fill
UIColor(2,WHITE); // Object Foreground
UIColor(3,DBLUE); // Object Sel. Fill
UIColor(4,WHITE); // Object Sel. Foreground
The button I created look fine until I use
FsetText(). Here Pocket C or the library "forgets" the Backcolor and the textcolor: I get white text on white Background. Even when I call SetTextColor() and SetBack() nothing changed (white on white). After calling clearbuf() and Fctl(SHOWALL) the button displays like it should.
The same "happens" to Buttons defined with a List:
List(Lst_Name,60,5,50,3,But_TrgLst);
FsetList(Lst_Name,1,3,Namen);
Button(But_TrgLst,0x10000,60,5,60,14,Namen[1]);
After Fctl(SHOWALL) I get white Text on black background. After choosing a topic of the list I get whit text on white background.
Do I something wrong ?

PostPosted: Wed Nov 28, 2001 8:55 pm
by jstadolnik
Try using UIColor(22,255) to set the form background to black rather than using SetBack & ClearBuf.

Joe

PostPosted: Wed Dec 05, 2001 4:07 am
by Lars2001
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Try using UIColor(22,255) to set the form background to black rather than using SetBack & ClearBuf.

Joe
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

I tried it out yesterday and it works! Thanks a lot Joe, now I know the meaning of "Fill Color".

Michael