Resource menu with time

A PocketC native palm library offering native forms and assorted utilities

Postby slartibardfast on Wed Jan 15, 2003 8:12 pm

Hi,
I've been attempting to get a time on the title bar like in the standart palm os launcher, I also use resouce menus. Unfortunatly the code below produces very poor results- Overwriting the first menu item etc. But it does display the time:oops:

while(1) {
e=Fevent(2);
title(time(1));
switch(e) {
rest of program

Any suggestions?
Thanks in advance

-David Connolly
davidc@alphasols.com
-David Connolly
davidc@alphasols.com
slartibardfast
 
Posts: 6
Joined: Sun Sep 22, 2002 12:21 pm
Location: Ireland

Postby jstadolnik on Wed Jan 15, 2003 8:21 pm

title() does not work on PToolbox forms, only PocketC's graphics form.

I would suggest just writing text over the menu bar with text(). If you set the foreground and background (and text) colors correctly this should work well.

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 slartibardfast on Wed Jan 15, 2003 8:35 pm

Excellent thanks very much!

-David Connolly
davidc@alphasols.com
-David Connolly
davidc@alphasols.com
slartibardfast
 
Posts: 6
Joined: Sun Sep 22, 2002 12:21 pm
Location: Ireland


Return to Pocket Toolbox

Who is online

Users browsing this forum: No registered users and 2 guests

cron