Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - title() - only once in an application?

title() - only once in an application?

Postby spudley on Thu Dec 13, 2001 12:43 pm

title(); gets 'messed up' if called multiple times in an app.

Demonstrated:
main() {
graph_on();clearg();
title("a short title");
waitp();clearg();
title("a slightly longer title");
waitp();clearg();
title("tiny title");
waitp();graph_off();exit();
}

(tested on palm m100 and IIIc and V (emulator) and m100 (real thing))

code that does work as 'expected':
main() {
graph_on();
title("a short title");
waitp(); graph_off();graph_on();
title("a slightly longer title");
waitp(); graph_off();graph_on();
title("tiny title");
waitp(); graph_off(); exit();
}


Perhaps I'm too much of a 'newbie' at PocketC & Palm apps to say this is a bug, but I've done lots of programming in my lifetime and I'd sure consider it one ;) If title() is supposed to set the title in the upper part of the palm screen and give it a particular look, it should do it no matter what title was there before it and without having to shut down the graphics page and restart it again.

Again, I'm new at all this and maybe just missing something about title() that I should know but don't ;)


Trade your website traffic...
http://www.surferswap.com
Trade your website traffic...
http://www.surferswap.com
spudley
 
Posts: 7
Joined: Sat Dec 08, 2001 12:51 am
Location: Canada

Postby exit_head on Tue May 04, 2004 3:55 am

dude, you have to call the "graph_off();" function and then call "graph_on();" again before you change the title name.

Demonstrated:
main() {
graph_on();clearg();
title("a short title");
waitp();<font color="red">graph_off();graph_on();</font id="red">
title("a slightly longer title");
waitp();<font color="red">graph_off();graph_on();</font id="red">
title("tiny title");
waitp();graph_off();exit();
}
exit_head
 
Posts: 64
Joined: Tue May 04, 2004 3:50 am
Location: USA

Postby Atomo64 on Mon Jul 26, 2004 4:25 pm

It's not necesary call the graph_off(); function only the graph_on. Check it.
main() {
graph_on();clearg();
title("a short title");
waitp();graph_on();
title("a slightly longer title");
waitp();graph_on();
title("tiny title");
waitp();
}

http://www.atomo64.tk the best site
Atomo64
 
Posts: 45
Joined: Wed Feb 18, 2004 11:14 pm

Postby exit_head on Tue Apr 19, 2005 5:31 am

your right atomo, dang i forgot i replied to this topic [:p]
exit_head
 
Posts: 64
Joined: Tue May 04, 2004 3:50 am
Location: USA


Return to PocketC for Palm OS Suggestions

Who is online

Users browsing this forum: No registered users and 2 guests

cron