Newsgroups: comp.windows.x Path: utzoo!utgpu!cunews!bnrgate!bwdls49!jsparkes From: jsparkes@bwdls49.bnr.ca (Jeff Sparkes) Subject: Re: Any way to access app->rv ? Message-ID: Sender: news@bnrgate.bnr.ca (USENET News System) Organization: Bell-Northern Research, Ltd. Ottawa Ontario CANADA References: <886@auto-trol.UUCP> <890@auto-trol.UUCP> Date: 19 Oct 90 11:30:43 GMT In <890@auto-trol.UUCP> marbru@auto-trol.UUCP (Martin Brunecky) writes: >In article jsparkes@bwdls49.bnr.ca (Jeff Sparkes) writes: >>In <886@auto-trol.UUCP> marbru@auto-trol.UUCP (Martin Brunecky) writes: >>>I need this value inside the StringToPixel convertor, as I have to reload >>>the default one to be able to keep track of color cell allocation counts >> >>Just put it into the args for the converter. See the example in section >>9.6.2 of the Intrinsics manual. > How ??? Arguments can only use one of 5 address modes, referencing either > widget instance field, constant or resources. > Here I am talking about a field in application context, i.e. the > dereferncing goes from display -> application context -> rv. > All that is defined in xxxxxI.h files, which, for example, are not > provided by DEC. I sort of answered this sideways. I didn't find a way to use app->rv. It is set from the *reverseVideo resource, so just get the value of that and pass it to your converter. According to R4 includes you can pass the address of a static Boolean variable: typedef enum { /* address mode parameter representation */ /* ------------ ------------------------ */ XtAddress, /* address */ XtBaseOffset, /* offset */ XtImmediate, /* constant */ XtResourceString, /* resource name string */ XtResourceQuark, /* resource name quark */ XtWidgetBaseOffset, /* offset from ancestor */ XtProcedureArg /* procedure to invoke */ } XtAddressMode; -- Jeff Sparkes jsparkes@bnr.ca Another feature is that the seats float, so that the airline can recover them if the plane crashes into the ocean. -- Dave Barry