Post Reply 
TEXTOUT_P
09-07-2017, 08:43 AM
Post: #1
TEXTOUT_P
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
Find all posts by this user
Quote this message in a reply
09-07-2017, 09:09 AM
Post: #2
RE: TEXTOUT_P
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
Find all posts by this user
Quote this message in a reply
09-07-2017, 10:10 AM
Post: #3
RE: TEXTOUT_P
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
Find all posts by this user
Quote this message in a reply
09-07-2017, 11:13 AM
Post: #4
RE: TEXTOUT_P
The on-calc help description has that content.
Find all posts by this user
Quote this message in a reply
09-07-2017, 11:29 PM
Post: #5
RE: TEXTOUT_P
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
Find all posts by this user
Quote this message in a reply
09-08-2017, 12:32 AM
Post: #6
RE: TEXTOUT_P
(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!

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
09-08-2017, 06:10 AM
Post: #7
RE: TEXTOUT_P
I know....I was just being a bit prissy :-)
Find all posts by this user
Quote this message in a reply
09-08-2017, 10:14 AM
Post: #8
RE: TEXTOUT_P
(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-
Find all posts by this user
Quote this message in a reply
09-11-2017, 05:17 AM
Post: #9
RE: TEXTOUT_P
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

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)