HP Forums

Full Version: TEXTOUT_P
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've seen code that uses a return value from TEXTOUT_P(), but the docs don't tell us what that return value is....
Can anyone tell me what this call returns?
Thx
Syntax:
TEXTOUT_P(text, [G], x, y, [font], [textColor], [width], [backgroundColor])

Draws text on graphic G at position (x, y) using font and textColor. Paints the background before drawing the text using color backgroundColor. If width is specified, does not draw text more than width pixels wide. If backgroundColor is not specified, the background is not erased.

The sizes for font are:

0=current font (default)
1=font 10
2=font 12 (Small)
3=font 14 (Medium)
4=font 16 (Large)
5=font 18
6=font 20
7=font 22

Returns the X coordinate at which the next character of the string should be drawn if the string had more characters

Examples:
TEXTOUT_P("Hello HP Prime",100,100,4,RGB(255,0,0),200,RGB(0,255,255)); FREEZE
__$Demo_PISERIES_P
Arno
That line about what it returns isn't in my version of the docs or the online docs.....is it in a manual you have by chance? If so, please send the link.
Thank you.
-Donald
The on-calc help description has that content.
Online help
User manual
on calculator help
Latest release help
Gee, which one am I supposed to find things in when they are all different?
Thx
-D
(09-07-2017 11:29 PM)webmasterpdx Wrote: [ -> ]Online help
User manual
on calculator help
Latest release help
Gee, which one am I supposed to find things in when they are all different?
Thx
-D

It seems like the on calculator help is usually the latest and matches the firmware release. When all else fails, ask here!
I know....I was just being a bit prissy :-)
(09-07-2017 11:29 PM)webmasterpdx Wrote: [ -> ]Online help
User manual
on calculator help
Latest release help
Gee, which one am I supposed to find things in when they are all different?
Thx
-D

So many resources, so little time. (Fortunately, there are reading rooms). It's a good thing, too, because one of the essential skills for job interviews, is locating information.

To your list, I would add, "Trial and Error." Prioritizing your list: {On-Calc Help, User Guide, Online, other resources, Trial and error}. This list works pretty well for me, but, Lord knows, I have been a lifelong student at the school of hard knocks, with masters degree, unlikely.

-Dale-
Hello

"It seems like the on calculator help is usually the latest and matches the firmware release. When all else fails, ask here"

I would even update to: "The English version of the on calc help", since the translations can take some time.

Cyrille
Reference URL's