Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!ames!ncar!ico!auto-trol!marbru From: marbru@auto-trol.UUCP (Martin Brunecky) Newsgroups: comp.windows.x Subject: Re: Need help in interactive selection of a motif widget/gadget Keywords: widget gadget motif X11 help-me-please Message-ID: <338@auto-trol.UUCP> Date: 28 Oct 89 01:30:05 GMT References: <4219@hplabsz.HPL.HP.COM> Reply-To: ncar!ico!auto-trol!marbru (Martin Brunecky) Organization: Auto-trol Technology, Denver Lines: 34 In article <4219@hplabsz.HPL.HP.COM> mayer@hplabs.hp.com (Niels Mayer) writes: >I have added a primitive to my WINTERP application (a Motif application .... >Am I doing something wrong? Is this a Motif or Xtoolkit bug? Do I have to >add yet another special kludge for a gadget-inside-a-manager- >-inside-a-scrolled-window? Inquiring minds want to know. I don't offer too much help, just an observation gained through burning night oil in an effort to integrate my widgets with Motif. Motif is "OPEN" (or that's what we all assume - don we ?). But what that means ? Opennes for use, or openness for further development ???? The current Motif code implements it's desired functionality by defeating anything that I ever read about object oriented programming. The entire toolkit is tied together by numerous dependencies and assumptions. There are widgets which know exactly what to do with xxxbutton and yyybutton. There are widgets reloading translation tables in another widgets, knowing what their action routines are. There are....... What I am trying to say, is: Motif is here, but - by God - don't even think about tailoring it. It has not been designed for it. Is it OSF's fault ? I don't think so. They wanted to deliver a product, and most users will be happy with Motif as it is. The code You are trying to implement, will have to do the same thing as Motif code does. Know exactly which widget it's dealing with, include it's private header files and go for widget's private data. Ugly ??? Maybe. Difficult ? Certainly. Difficult to maintain ? You bet ! -- ############################################################################### Martin Brunecky, Auto-trol Technology Corporation, 12500 North Washington Street, Denver, CO-80241-2404 (303) 252-2499 ncar!ico!auto-trol!marbru