Post Reply 
which grob?
11-16-2015, 10:46 PM
Post: #1
which grob?
In the following program

export spin ()
begin
Rect_P (); <--- who does this clear.?
CHOOSE (...); <--- where does this draw
TEXTOUT_P("hello",0,0); <-- where does this draw
while 1 do end;
end;

What grob am i writing to.?

if i break out i return to the starting screen.
The choose box opens on top of the starting screen which is untouched.

What exactly is the graphics paradigm here?

I work with android Prime only for now on my
Galaxy Tab Pro/Note 2
Find all posts by this user
Quote this message in a reply
11-17-2015, 12:29 AM
Post: #2
RE: which grob?
Rect_P() clears G0
Choose() does not store anything to a GROB it only displays a menu
TextOut_P("hello",0,0) outputs hello at 0,0 on G0

Experiment! if you don't know test it out Smile
Find all posts by this user
Quote this message in a reply
11-17-2015, 12:36 AM
Post: #3
RE: which grob?
(11-16-2015 10:46 PM)ji3m Wrote:  In the following program

export spin ()
begin
Rect_P (); <--- who does this clear.?
CHOOSE (...); <--- where does this draw
TEXTOUT_P("hello",0,0); <-- where does this draw
while 1 do end;
end;

What grob am i writing to.?

if i break out i return to the starting screen.
The choose box opens on top of the starting screen which is untouched.

What exactly is the graphics paradigm here?

Type: RECT_P and with the cursor somewhere in that command name, press the help key for all the information on that command. But to answer your question, when no graphics object is specified, the default G0 (current display) is always used.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
11-17-2015, 12:57 AM
Post: #4
RE: which grob?
Are the home screen and the cas screen grobs?
if so what number?

I certaintly have looked at the help screens but ...

I work with android Prime only for now on my
Galaxy Tab Pro/Note 2
Find all posts by this user
Quote this message in a reply
11-17-2015, 03:52 AM
Post: #5
RE: which grob?
(11-17-2015 12:57 AM)ji3m Wrote:  Are the home screen and the cas screen grobs?
if so what number?

I certaintly have looked at the help screens but ...

G0 is the "current" display, so it could be the home or cas, depending where you are.

My website: ried.cl
Visit this user's website Find all posts by this user
Quote this message in a reply
11-17-2015, 06:25 AM
Post: #6
RE: which grob?
Hello,

G0 is the 'desktop', it is the current display framebuffer...
G0 is the default graphic for all graphical operations (if none is specified)...

Choose will of course display on the desktop, BUT since Choose is a 'window' control, executing it will cause a display of the whole desktop (not only the Choose), so any drawing that you might have done BEFORE doing the choose on G0 will be erased at this point...

Please note the Freeze command, which can freeze the display after the end of the execution of a program until a key is pressed.

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)