From owner-freebsd-libh Wed Jun 5 18:14: 6 2002 Delivered-To: freebsd-libh@freebsd.org Received: from postal.sdsc.edu (postal.sdsc.edu [132.249.20.114]) by hub.freebsd.org (Postfix) with ESMTP id 42FC537B404 for ; Wed, 5 Jun 2002 18:14:02 -0700 (PDT) Received: from multivac.sdsc.edu (multivac.sdsc.edu [132.249.20.57]) by postal.sdsc.edu (8.11.6/8.11.6/server/38) with ESMTP id g561DwN28386; Wed, 5 Jun 2002 18:13:58 -0700 (PDT) Received: by multivac (8.11.6+Sun/1.11-SolarisClient) id g561Dvl21820; Wed, 5 Jun 2002 18:13:57 -0700 (PDT) To: freebsd-libh@FreeBSD.ORG Subject: Hui API doc From: Max Okumoto Date: 05 Jun 2002 18:13:57 -0700 Message-ID: Lines: 53 X-Mailer: Gnus v5.5/XEmacs 20.4 - "Emerald" Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I felt left out looking at all the new documentation so I have written up a little documentation for the parts that I am working on recently. But I don't know where it would fit in... Can someone look it over and tell me where it put it? Max Okumoto Hui Programming API Intro ------- The graphical user interface for libh is the Hui subsystem. Currently there are two graphics implementations, text based (Turbo Vision) and X window (Qt). The scripting language is tcl. Programming Model ------- The programming model is a container and element system. Graphical elements and other containers are created by their parent containers. The resulting hierarchy is a tree like structure with containers as internal nodes and elements as leaves. The root of the tree is the Hui object. From this object you can create a menu bar, windows and dialogs. The two containers, windows and dialogs, have many of the same features but dialogs can return result strings, and are modal. In windows and dialogs you can create the following objects: o button o input line o label o list box o progress indicator o text edit [I have to examine the code more for this section.] But it looks like there can only be one menu bar. This bar is associated with the first window created which requests a menu bar. Element Placement. ------- The placement of elements and containers are absolute coordinates relieve to their container. [There is no automatic placement in the containers as far as I can tell] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message