Path: utzoo!attcan!uunet!bloom-beacon!UV4.EGLIN.AF.MIL!hart From: hart@UV4.EGLIN.AF.MIL Newsgroups: comp.windows.x Subject: DECwindows under VMS Message-ID: <8909271630.AA05007@expo.lcs.mit.edu> Date: 27 Sep 89 17:14:00 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 43 E G L I N A F B I N T E R O F F I C E M E M O R A N D U M Date: 27-Sep-1989 11:12am CDT From: DENNIS L HART HART Dept: Tel No: 904-882-3154 TO: _WINS% ( _DDN[XPERT@EXPO.LCS.MIT.EDU] ) Subject: DECwindows under VMS This is addressed to any persons who find themselves in a situation similar to myself. I am using DECwindows v5.1 employing the User Interface Language (UIL) to define initial interface state and the Toolkit and Xlib routines to drive the application during execution. Furthermore, I am using Fortran [SAVE THE FLAMES]; it the language of preference at our installation. I am interested in any discoveries, solutions, complaints, or bugs that others in similar circumstances have found. While I am developing an application for a specific task, I am investigating all levels of the DECwindow programming environment for suitability to future efforts and I will be interested in correspondence on this topic. Right now I am in need of help with getting the background and foreground colors from specific widgets. I believe this requires retrieving resource values but I have been unable to translate the examples from the manual which are written in C. What I want to do is this: I have a working zoom window, thanks to some code I got thru email, but I cannot figure the VMS/Fortran equivalent code to query for the background and foreground colors and then compare these "known" colors against the results obtained from X$GET_PIXEL. I have tried the method from the zoom/magnification example I have but I have not hit on the correct solution to date. I have made the zoom work by determining my foreground color by direct observation of the pixel values but it is not very portable and if I try to zoom on a multicolor image I will be sunk. Any help would be appreciated. P.S. for reference the program I got the zoom from is Xmag - simple magnification application.