Path: utzoo!attcan!uunet!lll-winken!xanth!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!NUSVM.BITNET!ISSLCK From: ISSLCK@NUSVM.BITNET (Law Chee Keong) Newsgroups: comp.windows.x Subject: SETTING SUB RESOURCES FOR NON-WIDGETS Message-ID: <8901310942.AA08004@ATHENA.MIT.EDU> Date: 2 Feb 89 19:15:42 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 24 Question for Xt experts: I have a widget which has non widget data. In order to set values for the resources for the non widget data, I understand that I need to call XtSetSubvalues through my set_values_hook proc of my widget. But the problem lies in this: How will my non widget data tell which of its resources has been set and changed and which has not. For example, say if a Color resource was changed, the non widget data would need to update private fields (GC fields) that are derived from this Color resource. But unlike the set_values proc where I have current, request and new widgets to compare those fields that are changed and not changed, the set_values_hook proc does not have a copy of my original widget data to allow me to make the comparisions. So, I don't know how to update derived fields. I am certain there is a way of doing this, (maybe an obvious way). But I just can't figure out how. Any help on this is greatly appreciated!! -- C.K. Law -- Institute of Systems Science -- National University of Singapore