Newsgroups: comp.sys.misc
Path: utzoo!censor!geac!maccs!flex6!darrin
From: darrin@flex6.dcss.mcmaster.ca (Darrin Wolter)
Subject: Lost Cursor in PHIGS canvas
Message-ID: <1990Nov29.180651.3196@maccs.dcss.mcmaster.ca>
Reply-To: darrin@flex.eng.mcmaster.ca (Darrin Wolter)
Organization: McMaster University, Hamilton, Ontario



I am having problems LOSING THE CURSOR on my PHIGS graphics canvas.
When entering the canvas, the cursor sometimes disappears.

I have a Sun 4 Sparc station 1 running sunviews.  I have set my canvas
up using PHIGS_DBL_CMAP (colour map) double buffering.

	ws = phigs_ws_type_create(phigs_ws_type_sun_canvas,
				  PHIGS_GP_USAGE, PHIGS_USE_PREFERRED,
				  PHIGS_COLOUR_TABLE_SIZE, CMAP_SIZE,
				  PHIGS_DOUBLE_BUFFER, PHIGS_DBL_CMAP,
				  0);


I have found that by displaying things twice, that this problem can
be compensated for.  However, this is just a patch that doesn't fix
the entire problem. I have also used

		pescape(PUESC_SET_CURSOR,&in,&out);

to toggle the cursor, with limited success.


If i use the PHIGS_DBL_HW (hardware) double buffering when i define
the graphics canvas, the cursor never disappears.  However my image
flickers because I do not have the necessary hardware to do this
properly.

If you know anything about this, or have any ideas, email, or a
posting are great.


thanks

darrin

darrin@flex.eng.mcmaster.ca

----------------------------
