Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!cory.Berkeley.EDU!dheller From: dheller@cory.Berkeley.EDU (Dan Heller) Newsgroups: comp.windows.x Subject: Clarification of "passing widget args to subwidgets" Message-ID: <5681@pasteur.Berkeley.EDU> Date: 15 Sep 88 06:31:17 GMT Sender: news@pasteur.Berkeley.EDU Reply-To: dheller@cory.Berkeley.EDU (Dan Heller) Organization: University of California, Berkeley Lines: 41 I've gotten a lot of confusing answers to my latest question, so I'd like to rephrase it and elborate on the important points. The question at hand is: how do you call XtCreate[..]Widget() and pass XtN... parameters that are intended for "sub"-widgets within the widget, not intended for the widget itself that you're creating. I've been writing a toolkit package of my own which contains mostly single functionality widgets. e.g. there are no "form"-type or shell-widgets; I use some athena widgets for those purposes. One of my widgets is a "pushbutton" widget which displays in its window a pixmap -- as opposed to a command widget which displays text. Now, the programmer can create a widget which is a picture of a pencil to go into "draw" mode of a draw program... you get the idea... stay with me, now. I have also written a scrollbar widget which uses two pushbuttons at the top and bottom (or left/right) ends of the scrollbar which are arrow-icons similar to the mac or sunview. The scrollbar widget contains two widgets that I'd like to provide the programmer the ability to specify alternate pixmaps or callback funcitons. For example, if you provide a different set of icons to a particular scrollbar, you can make it look like a "slider", which is much different from a scrollbar, but similar enough that you can use the same widget to implement it. What's more, I have another widget which is a "listbox" of items (strings, pixmaps, etc). It's very similar to the viewport widget in that there is a window which is scrollable, but unlike the viewport widget, this widget knows about the type of items within it and scrolls accordingly. There's more to it than that, but the point is, I want to be able to allow the programmer to modify the scrollbar or the arrow icons within the scrollbar. This has nothing to do with user-defaults or anything as it is not intended for list-box scrollbars to necessarily look like other scrollbars ... Of course, you can always specify resource manager stuff and it'll work, but that's not the issue here. So, can I add to the resource list within the widget file or what? Need good suggestions... Dan Heller