Re: Prevent someone from dragging a toplevel window, or...

2005-05-02 Thread Ken Ray
On 5/2/05 10:12 PM, "Sarah Reichelt" <[EMAIL PROTECTED]> wrote:

> On 1 May 2005, at 5:44 PM, Ken Ray wrote:
> 
>> (a) Prevent someone from dragging a window that is a toplevel window
>> (without a "snapback" solution of resetting the window after the drag
>> is
>> complete); or
>> 
> How about settings it's decorations to empty so there is no draggable
> title bar?
> You could fake the close, max & min buttons if needed.

Thanks Sarah, but unfortunately I don't have control of the topstack...

I've decided to settle for 'snapback'; it's a little odd, but acceptable.

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Prevent someone from dragging a toplevel window, or...

2005-05-02 Thread Sarah Reichelt
On 1 May 2005, at 5:44 PM, Ken Ray wrote:
(a) Prevent someone from dragging a window that is a toplevel window
(without a "snapback" solution of resetting the window after the drag 
is
complete); or

How about settings it's decorations to empty so there is no draggable 
title bar?
You could fake the close, max & min buttons if needed.

Sarah
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Prevent someone from dragging a toplevel window, or...

2005-05-01 Thread Terry Judd

From: Ken Ray <[EMAIL PROTECTED]>
Date: 2 May 2005 8:47:13 AM
To: Use Revolution List 
Subject: Re: Prevent someone from dragging a toplevel window, or...
Reply-To: How to use Revolution 

Well... it can; what I'm trying to simulate is the "customize toolbar" 
sheet
that drops down from a toolbar. Since sheets always drop from the 
tilebar of
a stack, I couldn't "just" use a sheet (since I need it to drop from 
the
toolbar, and not from the titlebar). However I've been able to 
simulate it
by creating a 1 pixel high palette that is positioned below my toolbar 
and
drops the sheet. But unfortunately, if you drag the "main" stack (the 
one
with the toolbar), the sheet doesn't follow like it's supposed to 
(since
it's not attached to the main stack, but to the palette). So 
unfortunately I
can't use a drawer in this case...

Good idea, though.
If I can't get the two to drag together, I'd be willing to make the 
main
stack undraggable while the "customize toolbar" sheet is displayed. 
But how
can you prevent a stack from being moved?

And unfortunately I don't have control over the stack that the 
toolbar's
attached to (so I can't use a custom window/custom drag region).

Is there anything left that I can do?
Descending into the realm of horrible hacks here but is is possible to 
overlay a window that has its transparency set way down (using Trevor's 
external) and which lies directly over the stacks titlebar and then 
using a custom 'drag' script in the transparent window to move the 
underlying and any other windows.

Terry...
Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]
Dr Terry Judd
Lecturer in Educational Technology (Design)
Biomedical Multimedia Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne
Parkville VIC 3052
AUSTRALIA
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Prevent someone from dragging a toplevel window, or...

2005-05-01 Thread Mark Talluto
On May 1, 2005, at 12:42 AM, Ken Ray wrote:
(a) Prevent someone from dragging a window that is a toplevel window
(without a "snapback" solution of resetting the window after the drag 
is
complete); or
Here is a crazy idea.  Could you draw a stack over the drag bar when 
needed?  Something like this example could get you started.  Not sure 
if you can make the stack invisible yet be there.  This is quick and 
dirty.  Sure it could be cleaned up a lot.

local lStackY, lStackX
on mouseMove
  put the screenMouseLoc into temp
  put item 1 of temp into lMouseX
  put item 2 of temp into lMouseY
  put the top of this stack into lStackX
  put the left of this stack into lStackY
  if lMouseY < (lStackX+10) then
if lFlag is "true" then exit mouseMove
put "true" into lFlag
createBlockerStack
  else
if exists (stack "blocker") then delete stack "blocker"
put empty into lFlag
  end if
end mouseMove
on mouseLeave
  createBlockerStack
end mouseLeave

on createBlockerStack
  set the vis of the templateStack to false
  set width of the templateStack to the width of this stack
  set the height of the templateStack to 20
  create stack "blocker"
  reset the templateStack
  set the decorations of stack "blocker" to empty
  set the style of stack "blocker" to palette
  set the shadow of stack "blocker" to false
  set the topleft of stack "blocker" to lStackX,(lStackY-21)
  set the vis of stack "blocker" to true
end createBlockerStack

Mark Talluto
--
CANELA Software
http://www.canelasoftware.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Prevent someone from dragging a toplevel window, or...

2005-05-01 Thread Ken Ray
On 5/1/05 4:50 PM, "Jan Schenkel" <[EMAIL PROTECTED]> wrote:

>> Thanks, Xavier, but the problem is that it doesn't
>> work... remember this is
>> for OS X, where the moveWindow message is only sent
>> when you are done
>> moving, not *while* you're moving (like it is in
>> Windows).
>> 
>> Any other ideas? Anyone?
>> :-)
>> 
>> Ken Ray
>> 
> 
> Since it's MacOSX only, you could try a drawer ?
> Unless it can't be hooked up to the other window, that
> is.

Well... it can; what I'm trying to simulate is the "customize toolbar" sheet
that drops down from a toolbar. Since sheets always drop from the tilebar of
a stack, I couldn't "just" use a sheet (since I need it to drop from the
toolbar, and not from the titlebar). However I've been able to simulate it
by creating a 1 pixel high palette that is positioned below my toolbar and
drops the sheet. But unfortunately, if you drag the "main" stack (the one
with the toolbar), the sheet doesn't follow like it's supposed to (since
it's not attached to the main stack, but to the palette). So unfortunately I
can't use a drawer in this case...

Good idea, though.

If I can't get the two to drag together, I'd be willing to make the main
stack undraggable while the "customize toolbar" sheet is displayed. But how
can you prevent a stack from being moved?

And unfortunately I don't have control over the stack that the toolbar's
attached to (so I can't use a custom window/custom drag region).

Is there anything left that I can do?

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Prevent someone from dragging a toplevel window, or...

2005-05-01 Thread Jan Schenkel
--- Ken Ray <[EMAIL PROTECTED]> wrote:
> On 5/1/05 3:16 AM, "MisterX" <[EMAIL PROTECTED]>
> wrote:
> 
> > Hi Ken
> > 
> > you need to implement a movewindow frontscript in
> a plugin stack that
> > filters the windows to prevent or pass the
> message.
> > 
> > local blockedlist
> > on movewindow
> >   if blockedlist is empty then updateblockedlist
> >   if the defaultstack is not in blockedlist then
> >   pass movewindow
> > end movewindow
> > 
> > Cool script, I like it! ;)
> 
> Thanks, Xavier, but the problem is that it doesn't
> work... remember this is
> for OS X, where the moveWindow message is only sent
> when you are done
> moving, not *while* you're moving (like it is in
> Windows).
> 
> Any other ideas? Anyone?
> :-)
> 
> Ken Ray
> 

Since it's MacOSX only, you could try a drawer ?
Unless it can't be hooked up to the other window, that
is.

Jan Schenkel.

Quartam - Tools for Revolution


=
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Prevent someone from dragging a toplevel window, or...

2005-05-01 Thread MisterX
If there's no OSX solution, then you need to simulate a windowdrag...

Hide the window's title bar and drag the window using mousedown like i
posted not long ago...

I'll try to release the MagicMG soon - it's "script ready" but there little
gui for it still - I'll try... It has the fully featured dragWindow feature
which i use across all N2O stacks now.

Cheers
Xavier

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Ken Ray
> Sent: Sunday, May 01, 2005 20:30
> To: Use Revolution List
> Subject: Re: Prevent someone from dragging a toplevel window, or...
> 
> On 5/1/05 3:16 AM, "MisterX" <[EMAIL PROTECTED]> wrote:
> 
> > Hi Ken
> > 
> > you need to implement a movewindow frontscript in a plugin 
> stack that 
> > filters the windows to prevent or pass the message.
> > 
> > local blockedlist
> > on movewindow
> >   if blockedlist is empty then updateblockedlist
> >   if the defaultstack is not in blockedlist then
> >   pass movewindow
> > end movewindow
> > 
> > Cool script, I like it! ;)
> 
> Thanks, Xavier, but the problem is that it doesn't work... 
> remember this is for OS X, where the moveWindow message is 
> only sent when you are done moving, not *while* you're moving 
> (like it is in Windows).
> 
> Any other ideas? Anyone?
> :-)
> 
> Ken Ray
> Sons of Thunder Software
> Web site: http://www.sonsothunder.com/
> Email: [EMAIL PROTECTED]
> 
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Prevent someone from dragging a toplevel window, or...

2005-05-01 Thread Ken Ray
On 5/1/05 3:16 AM, "MisterX" <[EMAIL PROTECTED]> wrote:

> Hi Ken
> 
> you need to implement a movewindow frontscript in a plugin stack that
> filters the windows to prevent or pass the message.
> 
> local blockedlist
> on movewindow
>   if blockedlist is empty then updateblockedlist
>   if the defaultstack is not in blockedlist then
>   pass movewindow
> end movewindow
> 
> Cool script, I like it! ;)

Thanks, Xavier, but the problem is that it doesn't work... remember this is
for OS X, where the moveWindow message is only sent when you are done
moving, not *while* you're moving (like it is in Windows).

Any other ideas? Anyone?
:-)

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]



___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Prevent someone from dragging a toplevel window, or...

2005-05-01 Thread MisterX
Hi Ken

you need to implement a movewindow frontscript in a plugin stack that
filters the windows to prevent or pass the message.

local blockedlist
on movewindow
  if blockedlist is empty then updateblockedlist
  if the defaultstack is not in blockedlist then
  pass movewindow
end movewindow

Cool script, I like it! ;)

Cheers
Xavier

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Ken Ray
> Sent: Sunday, May 01, 2005 09:43
> To: Use Revolution List
> Subject: Prevent someone from dragging a toplevel window, or...
> 
> Does anyone know of a way to either:
> 
> (a) Prevent someone from dragging a window that is a toplevel 
> window (without a "snapback" solution of resetting the window 
> after the drag is complete); or
> 
> (b) Move one stack smoothly at the same time as another stack 
> is being dragged by its titlebar?
> 
> This is Mac OS X only...
> 
> Thanks for any suggestions,
> 
> 
> Ken Ray
> Sons of Thunder Software
> Web site: http://www.sonsothunder.com/
> Email: [EMAIL PROTECTED]
> 
> 
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 

___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


Prevent someone from dragging a toplevel window, or...

2005-05-01 Thread Ken Ray
Does anyone know of a way to either:

(a) Prevent someone from dragging a window that is a toplevel window
(without a "snapback" solution of resetting the window after the drag is
complete); or

(b) Move one stack smoothly at the same time as another stack is being
dragged by its titlebar?

This is Mac OS X only...

Thanks for any suggestions,


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: [EMAIL PROTECTED]


___
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution