Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!zardoz.coral.COM!don From: don@zardoz.coral.COM (Don Dewar) Newsgroups: comp.windows.x Subject: Finding the parent of a widget Message-ID: <9008071759.AA23290@zardoz.coral.com> Date: 7 Aug 90 17:59:01 GMT References: <2034@trlluna.trl.oz> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 41 ) Return-Path: ) Date: 7 Aug 90 03:36:55 GMT ) From: uunet!bloom-beacon.mit.edu!unmvax!uokmax!munnari.oz.au!bruce!trlluna!shiva!soh (kam hung soh) ) Subject: Finding the parent of a widget ) Sender: uunet!expo.lcs.mit.edu!xpert-request ) To: xpert@expo.lcs.mit.edu ) ) ) Dear Netters, ) ) This sounds stupid, but I suddenly realise I don't know how to ) find the parent of a Xt widget! I know there is a field in the core ) widget which contains the parent, but I don't know how to get it ) nicely. Could some kind soul point out how to do it, and where I can ) find further information? Please email, and I'll summarise. ) ) Thanks ) ) --- ) Soh, Kam Hung email: h.soh@trl.oz.au tel: +61 03 541 6403 ) Telecom Research Laboratories, P.O. Box 249, Clayton, Victoria 3168, Australia ) ) There is a macro in the XmP.h (private functions/methods) called XtParent. I see no reason why this has been made private, but it works. Since I would like to know if there is a reason this call is private, I thought I would *beam* my respose out to the net. +---------+ | Coral | |@@@@@*@**| |@@*@@**@@| Don Dewar |*@@**@@@@| Coral Network Corporation, Marlborough, MA |@***@@@@@| Internet: don@coral.com |@@**@@@@@| Phone: (508) 460-6010 |*********| Fax: (508) 481-6258 |Networks | +---------+