[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

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

3159.0. "Customized ICONs" by SFCPMO::PATTEN () Wed Aug 01 1990 16:35

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.RTitleUserPersonal
Name
DateLines
3159.1Xt$Window should work...are you passing widget ID by value?CSC32::B_KEMPX'ed out TopFliteWed Aug 01 1990 17:290
3159.2a-ticka ticka ticka ticka, timing?MINNIE::DOUGjust sing it like you feel itThu Aug 02 1990 11:177
    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.3use creation callbackCSCOA3::HOOD_DOTue Aug 07 1990 13:2310
    
    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