Path: utzoo!attcan!uunet!ginosko!gem.mps.ohio-state.edu!csd4.csd.uwm.edu!mailrus!ncar!gatech!ncsuvx!csl.ncsu.edu!harish From: harish@csl.ncsu.edu (Harish Hiriyannaiah) Newsgroups: comp.windows.x Subject: Viewport Widget. (Athena tools) Message-ID: <3692@ncsuvx.ncsu.edu> Date: 17 Aug 89 22:37:14 GMT Sender: news@ncsuvx.ncsu.edu Reply-To: harish@csl.ncsu.edu (Harish Hiriyannaiah) Distribution: na Organization: North Carolina State University Lines: 24 I am trying to use a viewport widget to display images. This widget has one child - a box widget to which I spit the image data. While writing a call back proc for the viewport widget, I need to access the child. I tried the naive Childwidget = vpwidget->viewport.child; It bombed of course. Am I missing something here ? Also, I am confused about the *.h and the *P.h header files. How does the compiler figure out all the declarations and #defines in the *P.h files without #includes ? Am I missing something obvious here ? Please reply by e-mail if the answers are too trivial. harish pu. hi. harish@ecelet.ncsu.edu harish@ecebucolix.ncsu.edu ______________________________________ ____________________________________ | | ___ __ _ ___/ \/ | | -=====' _____ / \ ' \ / \ | /\ || I am not. Therefore I think not? | | / \/ \ \----| | | \_/\/ \/ || |