on 2/15/07 9:59 AM, Dennis Birch wrote:

> I'm having a real problem getting consistent display from an
> HTMLViewer. I'm wondering if anybody has compiled a set of tips for
> using this control successfully.
> I'm trying to use it in Mac OS X 10.4.8 on an Intel iMac.
> Its containing window's Composite property is set to true.
> I could not load any pages successfully using the LoadPage FolderItem
> method. I changed my code to use the LoadPage String, FolderItem
> method and I get very inconsistent results. Usually the first page I
> attempt to load appears correct. Subsequent attempts to load a page
> are inconsistent. If they work (i.e. if anything appears), it is
> usually centered in the page, showing only a bit of the page's
> content. Resizing the containing window corrects the page display in
> those cases.
> So, any suggestions?


What version of REALbasic are you using?  Recently, I've been working on a
new 3.0 version of UniHelp, using the HTMLViewer as the help page display
and its been working great for me in RB2006r3 and higher.  I'm using
LoadPage(FolderItem) and getting consistent results with pages displaying
properly.

What I did find was that when I had the HTMLViewer control positioned lower
on the window (below a custom toolbar), sometimes HTML pages would load
funky with their width going off the right side of the window.  Like you,
resizing the UniHelp window corrected the problem.

For unrelated reasons, I ended up redesigning the UI of the UniHelp window
for the forthcoming 3.0 version, which incidentally moved the HTMLViewer to
the top of the window.

Now that the HTMLViewer is located at the top of the window, I no longer get
any page display problems.

If you've got your HTMLViewer control positioned below a toolbar or other
controls, try moving it to the top of the window to see if that solves the
display problems you're seeing.

Hope that helps...

Regards,
Dave Wooldridge
Electric Butterfly
http://www.ebutterfly.com

-------------------------------------


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to