Programming questions
|
04-06-2016, 03:43 PM
(This post was last modified: 04-06-2016 03:45 PM by periappi.)
Post: #1
|
|||
|
|||
Programming questions
Hi,
I've got some weird issues with my program, so here are some of them : 1) I cannot set the space width right : HP Prime Emulator (the same on the calculator) : The code see by the program editor in the emulator : HP Connection Kit (no problem here) : 2) Is there a way so I can put a big text into a PRINT() without it crashs ? Thanks ! |
|||
04-06-2016, 10:35 PM
Post: #2
|
|||
|
|||
RE: Programming questions
If you would like to create your own screens, you might find textout_p() useful. It will require manipulating graphic screens, most likely, but well worth the effort.
-Dale- |
|||
04-07-2016, 08:03 AM
Post: #3
|
|||
|
|||
RE: Programming questions
The Kit and program editor using a monospaced font, PRINT and TEXTOUT adjust the text according to the character, there is no way to modify this feature.
Viga C | TD | FB |
|||
04-07-2016, 11:29 AM
Post: #4
|
|||
|
|||
RE: Programming questions
The PRINT() uses the terminal, and does not use pixel-based character positioning. TEXTOUT commands do.
Additionally, with TEXTOUT, more font sizes, text color, and background color are available. You can put characters anywhere you want them. Using PIXON, and PIXOFF you could even construct your own characters, (which I found useful to display 'rotated' text around the perimeter of the outer resistance circle for a Smith Chart application). These pixel based commands do require familiarity with graphic variable usage, such as RECT_P(), and BLIT_P(). Designing an output display can be more versatile when using the graphic feature set. It just comes with more overhead than the simple PRINT() command. Here's a small program that uses both methods, perhaps useful for ideas: Code:
|
|||
04-07-2016, 01:37 PM
Post: #5
|
|||
|
|||
RE: Programming questions
(04-07-2016 11:29 AM)DrD Wrote:This program is very nice! TKS! Leo |
|||
04-07-2016, 05:43 PM
Post: #6
|
|||
|
|||
RE: Programming questions
Thanks for the replies, it helps a lot !
PS : the program is awesome ! |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)