From owner-freebsd-hackers Sun Aug 18 19:13:07 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id TAA04691 for hackers-outgoing; Sun, 18 Aug 1996 19:13:07 -0700 (PDT) Received: from po2.glue.umd.edu (po2.glue.umd.edu [129.2.128.45]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id TAA04679 for ; Sun, 18 Aug 1996 19:13:04 -0700 (PDT) Received: from baud.eng.umd.edu (baud.eng.umd.edu [129.2.98.183]) by po2.glue.umd.edu (8.7.5/8.7.3) with ESMTP id WAA29934; Sun, 18 Aug 1996 22:13:02 -0400 (EDT) Received: from localhost (chuckr@localhost) by baud.eng.umd.edu (8.7.5/8.7.3) with SMTP id WAA05891; Sun, 18 Aug 1996 22:12:56 -0400 (EDT) X-Authentication-Warning: baud.eng.umd.edu: chuckr owned process doing -bs Date: Sun, 18 Aug 1996 22:12:56 -0400 (EDT) From: Chuck Robey X-Sender: chuckr@baud.eng.umd.edu To: Michael Smith cc: PETER STUBBS , FreeBSD-hackers@freebsd.org Subject: Re: Getting started with X programming In-Reply-To: <199608190120.KAA00411@genesis.atrad.adelaide.edu.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Mon, 19 Aug 1996, Michael Smith wrote: > PETER STUBBS stands accused of saying: > > > > I wonder if anyone can recommend a good book to get me started with X > > programming? Are there any good free tool kits? xlib looks a bit too > > low level. > > Tk. "Tcl and the Tk toolkit" (ignore Tcl if you don't like it, Tk is useful > in and of itself). > > Interviews (which has gone on to become something else). > > Libforms (libxforms). Never used this, so all I know is that someone > likes it. > > All of the above are in the ports collection. Tcl/Tk is a religion in > and of itself, but Tk can easily be used standalone. You know, I hesitated to say this, because I was against using Motif to begin with (I don't like the window manager at all) but the books on using Motif explain X11 fairly well, and the library from Xinside, at version 2.0, is very up-to-date. I especially liked Marshall Brain's MOTIF programming (Digital Press). Reading that will convince you to buy all the O'Reilly X11 programming manuals, and get you programming in X faster than only reading the X toolkit books, which just aren't as obvious. Maybe that's because Motif has a lot of bells and whistles that are missing in most other widgets. That book will get you programming in X faster than any other direct C method. Of course, there's nothing wrong with Michael's suggestion, but that's a scripting language, not real X (although it may not matter, it it looks like a duck, smells like a duck, quacks like a duck, well, it MAY BE a duck). I doon't think you can equate tk widgets with X. Example: the tk text widget. Fine, dandy widget, but all the neatest parts are PRIVATE! You can't access them directly, you have to go (slowly) thru tcl. I have no idea why those interfaces had to be made static, I really don't. > > > Peter Stubbs, St Aidan's AGS. > > -- > ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ > ]] Genesis Software genesis@atrad.adelaide.edu.au [[ > ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ > ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ > ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[ > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and n3lxx, both FreeBSD (301) 220-2114 | version 2.2 current -- and great FUN! ----------------------------+-----------------------------------------------