[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

977.0. "Mixing Widgets and Windows" by KYOA::MIANO (O.K. so who cares about the METS?) Mon Jun 19 1989 23:06

I am trying to create an application the does a lot of graphics.  My 
intension is to create a window for displaying the graphics and use
widgets for command input.  My question is what is the best way to set 
up the window heirarchy?  XtInitialize creates a top level window.  It
it possible to make a normal window a child of the top level window?  Is 
it possible to make the widget window children of the X window?  Are there any 
problems or things to look out for when mixing Widgets and windows?

John

T.RTitleUserPersonal
Name
DateLines
977.1all ready in your toolkitNEURON::NICHOLSONA belly as big as an oil spillTue Jun 20 1989 01:2310
    It's been done for you!!!
    
    Use a Window Widget whose purpose (as I understand it) is to give
    you a widget for which you can get a window id to draw graphics
    into.  With the window widget you can specify a callback for expose
    events (so that you don't have to muck with event handling for the
    window yourself).
    
    Mark

977.2easy to do.SMAUG::FLOWERSIBM Interconnect Eng. 226-7716Tue Jun 20 1989 11:0518
Can I suggest the following:

		toplevel
		   |
	   Attached Dialog Box
	     /		\
     Window (for gpx)  Command Window

Use the ADB to make positioning the two windows and resizing
easier...

These are all "predefined" widgets for you.  See your local "Guide to
Appl Programming" and UIL manual for descriptions of these.

Good luck,
Dan


977.3PSW::WINALSKICareful with that VAX, EugeneThu Jun 22 1989 18:345
Note that "Window" in .2 means "window widget", not some j-random window from
XCreateWindow or XCreateSimpleWindow.

--PSW