Date: 05 Jun 2002 18:13:57 -0700 From: Max Okumoto <okumoto@ucsd.edu> To: freebsd-libh@FreeBSD.ORG Subject: Hui API doc Message-ID: <hf660x8azu.fsf@multivac.sdsc.edu>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?hf660x8azu.fsf>
