Re: How can i drag a HTA window with out a caption? by mr
mr
Tue Jun 22 12:14:11 CDT 2004
hi Sebastian,
This is typically done in vb -- as you suggest. When a mousedown (on the vb
form) is detected, the drag is started, with incremental moves (direction
and magnitude) determined by subsequent mousemove events. And of course the
drag is stopped when a mouseup event occurs.
However, vb coders have an advantage over html/dhtml coders, in that in vb
you can direct the mouse events to the window where you want them to go (in
this case to the form itself, rather than the various constituent controls).
You may be able to do that in html/dhtml, but I can't help you there.
cheers, jw
"Sebastian" <mondlicht@myrealbox.com> wrote in message
news:rp5m6zv5oelx.cu27stwe2d77$.dlg@40tude.net...
> Hello!
>
> I want a HTA application without a caption, so i set caption="no". The
> problem is now i cant drag the window anymore. Is there a way to drag
> the window with javascript. perhaps with onMouseMove and moveBy?
>
> Sebastian