Title: | DECWINDOWS 26-JAN-89 to 29-NOV-90 |
Notice: | See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit |
Moderator: | STAR::VATNE |
Created: | Mon Oct 30 1989 |
Last Modified: | Mon Dec 31 1990 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 3726 |
Total number of notes: | 19516 |
I am trying to create customized icon pictures for my DECwindows software. I have done this successfully in the past when programming in XLIB, but now I am using UIL/DRM and have run into some problems. I am calling X$SET_STANDARD_PROPERTIES to set the stuff I need to set. This routine requires the application supply a WINDOW ID (argument # 2). The question I have is: What information do I send to this routine for the WINDOW ID? I have tried sending the widget number for my TOPLEVEL_WIDGET. I have tried using both DWT$GET_WINDOW and XT$WINDOW hoping one of these would return the required value, but BOTH routines return a 0 no matter what widget id I pass them. Notes: I am programming in VAX FORTRAN using VMS 5.3-1.
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
3159.1 | Xt$Window should work...are you passing widget ID by value? | CSC32::B_KEMP | X'ed out TopFlite | Wed Aug 01 1990 14:29 | 0 |
3159.2 | a-ticka ticka ticka ticka, timing? | MINNIE::DOUG | just sing it like you feel it | Thu Aug 02 1990 08:17 | 7 |
also, make sure you are asking for the window id after the window is, in fact, created; otherwise, you will get a zero. in general, it's safe to call XtWindow after XtRealize-ing the toplevel widget. --dd | |||||
3159.3 | use creation callback | CSCOA3::HOOD_DO | Tue Aug 07 1990 10:23 | 10 | |
Get the window ID from the widget.... set up a creation callback for the widget in question. In the creation callback, use XtWindow on the widget id parameter (first parameter of any callback routine). When you fetch the widget hierarchy, the creation callback will be run, and you will have the window ID. Note: this applies to C programming. I really don't know how this is done for fortran. Doug |