SunView tricks needed: background to a panel

Chuck Musciano chuck at trantor.harris-atd.com
Fri May 12 13:52:19 AEST 1989


> I am trying to put a background image into a sunview panel, but am coming
> across the expected problems. . .

I was never able to get this working correctly.  It's all moot, since this
ability is explicitly not supported under XView.

> Is there anyway to define an alternate image for a button, instead
> of relying on sunview's own braindead invert highlighting. 

You can attach an event proc to a button, and you will receive events like
PANEL_BEGIN_PREVIEW and PANEL_CANCEL_PREVIEW.  This signify the various
states of the button click sequence.  You can do whatever you want to
modify the button appearance when you receive these events.  Look at the
manual section about panels, and look at the code in calctool to see how
this is done.

Chuck Musciano			ARPA  : chuck at trantor.harris-atd.com
Harris Corporation 		Usenet: ...!uunet!x102a!trantor!chuck
PO Box 37, MS 3A/1912		AT&T  : (407) 727-6131
Melbourne, FL 32902		FAX   : (407) 727-{5118,5227,4004}



More information about the Comp.sys.sun mailing list