How to create a softkey in equation lib to show a PNG that illustrate the equation?

10252023, 12:01 AM
Post: #1




How to create a softkey in equation lib to show a PNG that illustrate the equation?
Hello,
I am trying to adapt Bernaud Michaud's equation library for usage. https://www.hpmuseum.org/forum/thread14...f+Material It is working fine but I would like to have a softkey that when press, show a specific png image that illustrate the purpose of that formula and to give a bit of context. So if I am in the solver for formula E1, pressing the softkey will show the png image specific for formula E1, and likewise when I am in formula E2, the softkey will show the image specific for E2. How do I achieve this please? Pointers appreciated. Thanks 

11032023, 10:07 AM
Post: #2




RE: How to create a softkey in equation lib to show a PNG that illustrate the equation?
I haven't looked at the library, but to make a softkey, you draw a rectangle on screen with RECT_P(blabla), then use TEXTOUT_P(blabla) to write in it.
You can make the area sensitive to touches on the touch screen with MOUSE testing if it returns numbers between the corners of the rectangle. Finally you can use G0:=AFiles("image.png") to load an image, and you can keep track of the page you are on with a variable that updates on each page. If you are unfamiliar with any of these terms or commands then you should look them up in the Programming section of the manual for the HP Prime available at  https://www.hpcalc.org/details/7445 

11042023, 12:30 AM
Post: #3




RE: How to create a softkey in equation lib to show a PNG that illustrate the equation?
(11032023 10:07 AM)matalog Wrote: I haven't looked at the library, but to make a softkey, you draw a rectangle on screen with RECT_P(blabla), then use TEXTOUT_P(blabla) to write in it. Thanks matalog. Is there an example to implement the above in the equation library? 

11062023, 09:10 AM
Post: #4




RE: How to create a softkey in equation lib to show a PNG that illustrate the equation?
I don't have an example. Experiment with each of the parts of the code I suggested and learn them bit by bit.
You'll be able to throw them together at the end. 

« Next Oldest  Next Newest »

User(s) browsing this thread: