<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=ltr><HEAD><TITLE>Making a table in Xerte 1.9</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=233183323-16112007><FONT face=Verdana
color=#0000ff size=2>I downloaded 1.9, but I still have the problem with the
tool tip. One thing I forgot to mention that maybe should be considered is that
to make the button always available, I used mainEntryFrame.swapDepths(99);. So
maybe the Tool Tip is on a lower layer? I guess not: for testing, I set the
layer back to 1, and it still didn't show the tool tip.</FONT></SPAN></DIV>
<DIV><SPAN class=233183323-16112007><FONT face=Verdana color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=233183323-16112007><FONT face=Verdana color=#0000ff size=2>I
have been using some of the drawing tools for my table. To create a "heading"
row, I've been setting the lineStyle and beginFill, then drawing a
rectangle of the appropriate size. The problem I have with the rest of the table
is that the heights of the rows will vary depending on how much text I need to
fit, so I've been using Text icons (one cell per icon), then setting the
h property of the text icon and using iconID.drawBorder(1,'#000000',100);
to draw the cell borders. It works well, and by using the 'Duplicate Icon'
feature, it's not as much work as I thought it was going to be for a 2 column,
10 row table. </FONT></SPAN></DIV>
<DIV><SPAN class=233183323-16112007><FONT face=Verdana color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=233183323-16112007><FONT face=Verdana color=#0000ff size=2>-
Paul</FONT></SPAN></DIV>
<DIV dir=ltr align=left><BR></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Tenney
Julian<BR><B>Sent:</B> Friday, November 16, 2007 3:15 PM<BR><B>To:</B> Xerte
discussion list<BR><B>Subject:</B> RE: [Xerte] Making a table in Xerte
1.9<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV id=idOWAReplyText13538 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Download 1.9 which will fix
your tooltips woes. I found that bug and fixed it.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Use Flash's native drawing tools to draw
a grid or whatevr you want on the screen:</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>iconID.lineStyle(1,0xFF0000,100);//width,
colour, alpha</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>iconID.moveTo(x,y)</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>iconID.lineTo(x,y)</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Do that in a loop to draw the
grid,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Are you familiar with Flash's drawing
methods id.lineStyle(width, col, alpha) and id.beginFill(col, alpha),
moveTo(x,y) and lineTo(x,y), and Xerte's drawing methods like
iconID.drawRect(x,y,w,h)? You need to call iconID.beginFill or
iconID.lineStyle before calling either Flash or Xerte's drawing methods
to set how the drawing should proceed.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Julian</FONT></DIV>
<DIV dir=ltr> </DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on
behalf of Paul Swanson<BR><B>Sent:</B> Fri 16/11/2007 17:07<BR><B>To:</B>
xerte@lists.nottingham.ac.uk<BR><B>Subject:</B> [Xerte] Making a table in
Xerte 1.9<BR></FONT><BR></DIV>
<DIV>
<P><FONT face=Verdana size=2>Julian,</FONT> </P>
<P><FONT face=Verdana size=2>I'm attempting to present some information in a
table. I've worked out a way to use the drawBorder() method on some text
icons, but it is a labor-intensive way to go about it, so I wonder if there is
a better way that you know of. Do you think snapToGrid() would be useful for
this?</FONT></P>
<P><FONT face=Verdana size=2>Also, I've noticed a problem in that I have a
perpetual button (using the button.swf) with a Tool Tip that no longer
displays. Actually, this was a problem in 1.8 as well. When I hover over the
button, after about a half a second, the cursor changes to an I-beam and
clicking does nothing. If I click right after placing the pointer over the
button it will display my Table of Contents (it runs a script that executes
rootIcon.showTOC();), but if I take too long nothing happens when you click.
And no tool tip in either case. If it matters, I have the default interface
turned off.</FONT></P>
<P><FONT face="Courier New" color=#808080
size=2>_____________________________</FONT> </P>
<P><FONT face="Courier New" color=#808080 size=2> Paul Swanson</FONT>
<BR><FONT face="Courier New" color=#808080 size=2> Instructional
Designer</FONT> <BR><FONT face="Courier New" color=#808080
size=2> Harland Financial Solutions</FONT> <BR><FONT face="Courier New"
color=#808080 size=2>_____________________________</FONT>
</P></DIV></BLOCKQUOTE></BODY></HTML>