Xref: utzoo comp.windows.misc:1774 comp.windows.x:32123 comp.sys.mac.misc:8023 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!bcm!dimacs.rutgers.edu!seismo!uunet!zaphod.mps.ohio-state.edu!rpi!crdgw1!barnett From: barnett@grymoire.crd.ge.com (Bruce Barnett) Newsgroups: comp.windows.misc,comp.windows.x,comp.sys.mac.misc Subject: Re: Mac vs. XView Message-ID: Date: 31 Jan 91 18:48:27 GMT References: <981@borg.cs.unc.edu> Sender: news@crdgw1.crd.ge.com Reply-To: barnett@crdgw1.ge.com Followup-To: comp.windows.misc Organization: GE Corp. R & D, Schenectady, NY Lines: 106 In-reply-to: lusk@hilbert.cs.unc.edu's message of 29 Jan 91 04:04:05 GMT In article <981@borg.cs.unc.edu> lusk@hilbert.cs.unc.edu (John Lusk) writes: Followup-To: lusk@cs.unc.edu Followup should be a newsgroup, not a mailing address. > Ok, ok, thanks for all the mail regarding Macintosh vs. X windows. I > feel like I tried to get a drink of water at a fire hydrant. Let me > refine my question a little: Macintosh vs. XView. Most of the > complaints about X had to do with the grunginess of Xlib and Xt. Can > anyone compare the Mac Toolbox to Xview? Well, I can try. Take an XView panel, with text and a scrollbar. (I'll simplify it somewhat.) There are only a few procedures you need to learn: xv_init(); xv_create(); xv_destroy(); xv_set(); xv_get(); Use xv_create() to make a new object. The first argument is the parent object (a pointer), the second argument is the thing you want to create. A list follows with optional arguments. It is terminated by a NULL: frame = xv_create(NULL,FRAME,NULL); To create a panel in the window, use: panel = xv_create(frame,PANEL,NULL); To create a button in the panel: button = xv_create(panel,PANEL_BUTTON,NULL); Notice how the toolkit will fill in the necessary defaults. In the case that you want to change the defaults, just specify them. You can do it at create time, or use the xv_set() command. button = xv_create(panel,PANEL_BUTTON, PANEL_LABEL