old-www/LDP/LG/issue33/gm-vdhtml-review.html

202 lines
11 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="GENERATOR" CONTENT="Mozilla/4.06 [en] (X11; I; Linux 2.0.30 i486) [Netscape]">
<TITLE>Graphics Muse
</TITLE>
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000FA" VLINK="#FA3333" ALINK="#33CC33">
<!-- =============================================================
This Page Designed by Michael J. Hammel.
Permission to use all graphics and other content for private,
non-commerical use is granted provided you give me (or the
original authors/artists) credit for the work.
CD-ROM distributors and commercial ventures interested in
providing the Graphics Muse for a fee must contact me,
Michael J. Hammel (mjhammel@csn.net), for permission.
============================================================= !--><A NAME="musings"></A>
<TABLE>
<TR>
<TD>
<H2>
More...</H2>
<IMG SRC="../gx/hammel/musings.gif" ALT="Musings" HEIGHT=52 WIDTH=247 ALIGN=LEFT></TD>
</TR>
</TABLE>
<TABLE WIDTH="100%" >
<TR>
<TD ALIGN=RIGHT WIDTH="100%"><FONT SIZE=-2>&copy; 1998 <A HREF="mailto:mjhammel@csn.net">Michael
J. Hammel</A></FONT></TD>
</TR>
<TR>
<TD VALIGN=TOP BGCOLOR="#000000" cellpadding="0" cellspacing="0"><IMG SRC="../gx/hammel/cleardot.gif" ALT="indent" ALIGN=LEFT></TD>
</TR>
</TABLE>
<B>A few notes on some of the other widgets:</B>
<BLOCKQUOTE><I>Notepads</I> are just TextArea form elements.&nbsp; You
can drag these but you have to click on the NotePads title - you can't
drag from the textarea or its scrollbar.
<P><I>News boxes </I>are interesting.&nbsp; You can add HTML tags to the
title too, but breaks will cause part of the title to go unnoticed without
some font specification.&nbsp; Also there are 4 navigational aides on the
4 corners of the news box.&nbsp; If you place the mouse over the Go aide
(upper left corner) the scrolling in the news box increases.&nbsp; On the
lower left corner, the Stop aide will slow and eventually stop the scrolling.&nbsp;
The Up and Down aides move the news text by small increments.</BLOCKQUOTE>
<BLOCKQUOTE>There is a <I>digital clock </I>which you can set the background
color for, but it seems to fill a box around the clock, not the the background
of the clock itself.&nbsp; There is also a <I>date widget </I>which is
just some colored text of a user-specified size (you can't specify the
font, however).
<P><I>Toolbar items</I> can be added to the toolbar after the toolbar is
created.&nbsp; A <I>Toolbar</I> is just another name for a menu bar with
icons. Its not obvious, but there are two links in the widget dialog for
Toolbars - one for the toolbar itself and right below that is one for adding
individual toolbar items (yes, its actually says "Item" but it all looks
like one link).</BLOCKQUOTE>
<I>Bug:&nbsp; Adding a menu item appeared to lock up the browser.&nbsp;
Top reported the application was asleep an using >50% of my 64Mb of memory
at that point.</I>
<BLOCKQUOTE>Be careful about adding a Toolbar if you have other items at
the top of the page already - you can't move the menu bar and if something
is underneath it that item can't be dragged to a new location because the
menu will be placed over the other item.
<P>The <I>mouselink</I> widget can be confusing.&nbsp; You don't click
on the small tab widget - this is the default image and looks much like
the drawer widget - but instead have to grab the pop up image!&nbsp; You
won't see the image until you place the mouse of the mouselink widget,
but once you do the image stays visible.&nbsp; This is a JavaScript onMouseOver
event without any leave event attached to it to clear the image.&nbsp;
You need to add that by hand.
<P><I>Tables</I> are accessible from the Text pull down menu (not from
the Widget dialog) because they expect you'll be filling the table with
text (although you can place HTML code in them too).&nbsp; Unfortunately,
if you specify a table that will be larger than the default VDHMTL Main
Window you won't get any scrollbars to access all the rows and/or columns.&nbsp;
Worse, you can't resize the Main Window!&nbsp; Moral:&nbsp; use small tables
and edit it by hand later.</BLOCKQUOTE>
Not all widgets are available from the Widgets dialog.&nbsp; The table
widget we just mentioned.&nbsp; There is a Channel Widget available from
the Channels pull-down menu in the main VDHTML window.&nbsp; I'm not sure
what this is for, however.&nbsp; The default URL for the image to use for
this widget didn't resolve so I can't show an image of the default here.
<P>You can tell the VDHTML has a way to go yet when you realize that there
is no way to remove an widget from the preview window.&nbsp; I tried dragging
them out of the window but that didn't seem to work.&nbsp; It just seems
to move the widget to an offscreen area but leaves it on the page.&nbsp;
You can prove this by dragging the default plug-in widget off the bottom
of the browser window.&nbsp; When the page reloads you will still get notices
about needing a Shockwave plug-in (which for Linux does not exist to my
knowledge) even though you thought you removed the widget which had previously
required it.And there is no menu option for removing these widgets from
the Main Window either.
<P>An interesting side effect showed up when I tried to use a <I>preferences</I>
widget, which is just a pop down menu.&nbsp; I then used that menu to select
"Reload Page" from within the preview window (this option and two other
options were provided as the defaults for this widget).&nbsp; This caused
my preview window to load Visual DHTML in the preview window!&nbsp; The
page I was working on disappeared!&nbsp; Fortunately, a right mouse click
in the preview window brought up the familiar Netscape popup menu from
which I could choose "Back" to return to my DHTML page.&nbsp; Similarly,
I discovered that I could restart the Visual DHTML application from its
Main Window by using the Back option of the Netscape popup menu (ie the
menu you get with a right mouse click in a browser window).&nbsp; Note
that if you do this and you have a preview window open then the restarted
VDHTML will not recognize that window - you'll have to start a new preview
window.
<P>This little experiment with using the BACK option also showed another
little bug - the menu bar in the real VDHTML window is statically sized,
so when VDHTML opened in my larger preview window, the menu bar didn't
go all the way across the window.&nbsp; Maybe its not a bug.&nbsp; Its
a design intent.&nbsp; I just don't think they meant for VDHTML to be opened
in the preview window!&nbsp; After seeing this I tried to resize the Main
Window using the window manager handles, except I discovered there were
no handles for resizing that window.&nbsp; An old GUI developers trick
- if you don't want the user doing something, don't give them the ability
to do so.&nbsp; I use it all the time when dealing with resizing windows.&nbsp;
Realignment of widgets in Motif is a pain.
<P>DHTML can usually be embedded within any of the widgets since most take
either URLs or ordinary text in their configurable options.&nbsp; The text
can be DHTML although VDHTML doesn't really make it easy to add this to
the text field in the options window.
<P><I>Bug:&nbsp; If the link is down or very slow there doesn't appear
to be a way to tell VDHTML to stop trying to connect to the remote URL.&nbsp;
You can't do anything with Netscape until the hosts network address is
resolved.</I>
<P>Since no links show up in the status bar like in an ordinary browser
window you can't tell when you've place the mouse over a link in either
the preview window or the Main window.&nbsp; This is probably a good thing,
but in places (like the toolbar widget and item links) it would help.
<P>Don't forget that this tool is creating a DHTML page, which is an ordinary
text file.&nbsp; You can save the file to disk and edit it later, so don't
fret too much about the lack of configurability in the current release
of the VDHTML application.&nbsp; If you do attempt to save your creation
you will need to go through one of the Java security dialogs to grant the
application (Netscape) to access your local hard disk.&nbsp; I never had
to deal with this particular security aspect in the past and it suprised
me just a bit.&nbsp; But don't worry - its just the local VDHTML application
you're granting access to and it is only for the current session, unless
you specify that the browser remember this priviledge by clicking on a
toggle in the dialog.
<P>The code VDHTML produces is marginally readable, but don't expect it
to fit nicely inside 80 column wide editor windows!&nbsp; Like the code
produced by the Page Composer, "newline" line breaks are not included in
the HTML text.&nbsp; You can edit this text as easily as any other text
once you get used to the missing newlines.
<BR>&nbsp;
<P><B>What is my opinion of its current state.</B>
<P>VDHMTL makes use of Layers and Cascading Style Sheets.&nbsp; These are
rather interesting new features for HTML, certainly ones which can add
some life to relatively static pages.&nbsp; But the overhead for animating
and running scripts within the browser is unclear.&nbsp; My system didn't
bog down, but it did have half of its available physical memory used up
by the browser while it ran this tool.&nbsp; For now, this is to be expected.&nbsp;
Get the application working first, then work on cleaning it up to make
it efficient.&nbsp; Not the best development plan, but a common one nonetheless.&nbsp;
I expect that much of the improvements in the future will come not from
the VDHTML code itself, but in the way the browser handles that code.
<P>As for Visual DHTML itself, it needs some work.&nbsp; The interface
is nice but I expect it to change drastically over the next few releases.&nbsp;
Most of the widgets don't have nearly all the possible configurable parameters
they could have so the Main Window will probably change to accomodate those
options.&nbsp; There are lots of bugs and unexpected behaviours in this
release, like accidently launching the application in the preview window.&nbsp;
It is, in fact, so buggy that I gave up trying to get a screen shot of
the available default widgets because I couldn't get them all to cooperate
enough so I could position them within a reasonably sized window.&nbsp;
And the use of style sheets is not very evident - no font configuration
for example.
<P>But for a first release its not bad.&nbsp; It will give you an idea
of what DHTML is all about and what is possible with it.&nbsp; The code
will be heavy with JavaScript so this might give you a chance to learn
some of the new tricks with the 1.2 release as well.&nbsp; But for now,
Visual DHTML is just a tool for experimentation.&nbsp; Don't expect to
be able to create overly ambitious Dynamic HTML projects with it just yet.
<P>One final note:&nbsp; on the Netscape page for Visual DHTML is a link
to an Midi-player example from Crescendo that was written with Visual DHTML.&nbsp;
Watch out for the Crescendo sample page!&nbsp; It removes the Netscape
menu bars and using the back button doesn't get them back!&nbsp; I had
to exit Netscape using my window manager Close option and start over.&nbsp;
Caveat surfer.
<BR>&nbsp;
<TABLE WIDTH="100%" >
<TR>
<TD VALIGN=TOP COLSPAN="4" BGCOLOR="#000000" cellpadding="0" cellspacing="0"><IMG SRC="../gx/hammel/cleardot.gif" ALT="indent" ALIGN=LEFT></TD>
</TR>
</TABLE>
<TABLE WIDTH="100%" >
<TR>
<TD ALIGN=RIGHT><FONT SIZE=-2>&copy; 1998 by <A HREF="mailto:mjhammel@csn.net">Michael
J. Hammel</A></FONT></TD>
</TR>
</TABLE>
</BODY>
</HTML>