ISSLCK@NUSVM.BITNET (Law Chee Keong) (02/03/89)
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