Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 1004 -
------------------------------------------------------------------------------
5. Select graphic page to use. <Main>
------------------------------------------------------------------------------
[Name]
crt_setgraphpage
[Syntax]
#include <crt.h>
int crt_setgraphpage( int page ) ;
[Arguments]
page Graphic page number to use. (0, 1, 2, -1 or -2)
[Return]
Returns zero if successful. If any error (i.e. invalid page number
was specified), returns non-zero value.
[Description]
Select graphic page to use for graphic drawing.
The graphic board of FS16/18/16i/18i/21i has two pages for graphic
drawing. "_setactivepage" and "_setvisualpage" functions selects
graphic page for drawing and displaying. "_setvideomode" function
initializes both two pages.
This function selects the page that is initialized by "_setvideomode"
function. Specify one of 0, 1 and -1 in "page".
Each value means as follows.
page behavior of "_setvideomode" function
-------+---------------------------------------------------
0 initializes only page #0, sets display/draw page=#0
1 initializes only page #1, sets display/draw page=#1
-1 initializes both page #0 and #1 (default),
sets display/draw page=#0
When "_setvideomode" function initializes one of page #0 and #1, the
contents of the other page are kept.
This function affects only behavior of "_setvideomode" function
which is called after calling of this function. Even if any value
is specified by this function, you can specify an arbitrary page
number in "_setactivepage" and "_setvisualpage" function.
By calling this function with "page=1", both drawing and displaying
pages are set as #1 after calling "_setvideomode" function. With
"page=0" or "page=-1", both drawing and displaying page are #0.