Thanks Peter,
  The stuff worked after some tweaking. However I found a few bugs (which I
think can be fixed easily (maybe!) )
This is the one line of code I added to make ScrollPane work.
  DragEvent.enableDragEvents(<referenceToDynDocument>,<scrollPaneObject>);
On doing so, strange errors saying "Object doesnt support this property or
method" crept up. These errors were caused due to the inclusion of
"dynapi.ext.dragdrop.js" Once I removed this file from my include,
ScrollPane works fine, with just one problem : Every time I scroll, the
whole scrollpane gets dragged a little bit. So now I have a draggable
scrollpane!
 On further inspection I found out that in dragdrop.js the problem was due
to the line
    if (!this.hasChild()) return;
On putting a line before this line saying:
 if (this.hasChild == null) return;
the include problem gets fixed.
However there is one major problem that I have no idea on how to fix.
Everytime one clicks on the content of the scrollpane,BOOM, a never-ending
recursive error occurs.
So basically now I have two problems that I cannot figure out :
1) How does one get rid of this recursive error.
2) How do I prevent the entite ScollPane from getting dragged.
One more thing.Is the line :
  DragEvent.enableDragEvents(<referenceToDynDocument>,<scrollPaneObject>);
the CORRECT way to get ScrollPane working ?
I either am doing something very stupid here or have opened a pandoras box
of bugs. ( I have a feeling its most likely the former, so some-one please
help!)


----- Original Message -----
From: "Peter Dvorsky" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 8:55 PM
Subject: Re: [Dynapi-Help] ScrollPane doesnt work using DynDocument.


>
> Checkout the archive for this thread:
>
> "[Dynapi-Help] dragging in frames bug - workaround for "
>
> peterD
>
>
> At 08:53 PM 1/11/2001 +0530, you wrote:
> >Hi,
> >     I have loaded the DynAPI in a parent frame, and using the
DynDocument
> >constructor (following Pascals tutorial) obtained a reference to one of
the
> >child frames. Using this reference I created a ScrollPane in the document
of
> >the child frame. The ScrollPane displays correctly and no errors are
> >reported.  However the scrollpane refuses to scroll the content.
> >     This code works perfectly fine when I create the ScrollPane in the
same
> >document in which DynAPI was loaded. Though on trying to create the
> >scrollpane from another frame, through a DynDocument, causes the
ScrollPane
> >to stop scrolling the content in it.
> >     I would be grateful if someone could help out here.
> >
> >
> >
> >
> >_______________________________________________
> >Dynapi-Help mailing list
> >[EMAIL PROTECTED]
> >http://lists.sourceforge.net/mailman/listinfo/dynapi-help
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/mailman/listinfo/dynapi-help
>


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-help

Reply via email to