Re: Right click menu on Windows

2004-08-25 Thread Mark Brownell
On Tuesday, August 24, 2004, at 10:11 PM, Brian Yennie wrote:
 What happens if you set the traversalOn
Ah! That reminds me of my rock-climbing days. This is a case of hearing 
about setting the traversalOn and forgetting why. Perhaps it would be 
better to say "get your arhs out there." Well, better you than me that 
is.

I'll try that.
Thanks,
Mark
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Right click menu on Windows

2004-08-24 Thread Brian Yennie
This sounds like your popup menu is grabbing the focus from the field. 
What happens if you set the traversalOn (is that the right property 
name) to false for that menu button?

So I just tried now and with the mousedown handler moved from the text 
field to the stack the handler opens the popup menu but I lose the 
selection so there is nothing for the cammands to work on now.

Maybe I'll figure that out soon.
-
Brian Yennie
Chief Technology Officer
QLD Learning, LLC
(941)-928-7127
[EMAIL PROTECTED]
--
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Right click menu on Windows

2004-08-24 Thread Mark Brownell
On Tuesday, August 24, 2004, at 06:34 PM, Sarah Reichelt wrote:
Why do you want to simulate a key combination? Wouldn't it be easier 
just to have your popup menu use the "copy", "paste", "cut" & "undo" 
commands directly?

Sarah
They don't work for some reason that I can't understand. The keyboard 
commands for Control-C, and Control-V work perfectly but when I do a 
menuPick from a popup menu it didn't work. I spent hours on this. 
Perhaps I missed something. I just wanted a right-click menuPick to 
work on the selected text in a field of the same stack. It was 
suggested to use an offScreen button like this:

Create a popup button with the menus you need and put it offscreen...
(I think hiding the button does only work on a mac...?)
Then script:
on mousedown whatmouse
   if whatmouse = 3 then ## right- or control-click!
 popup btn "you btn here"
  end if
end mousedown
In the right-click menuPick I tried copy & paste. Perhaps I'll try one 
more time. I gave up on turning the locktext or textlock true and then 
false.

So I just tried now and with the mousedown handler moved from the text 
field to the stack the handler opens the popup menu but I lose the 
selection so there is nothing for the cammands to work on now.

Maybe I'll figure that out soon.
Mark
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Right click menu on Windows

2004-08-24 Thread J. Landman Gay
On 8/24/04 4:26 PM, Mark Brownell wrote:
Is it possible to simulate a key combination click?
I'm trying to simulate a (Control & C) and (Control & V) from a menuPick 
for "copy" & "paste." I have a popup menu that allows me to use a field 
with textLock true on mouseDown and the textLock false on mouseUp. This 
enables the mouseDown to pass the mouse message to the popup.

If I can use the already perfectly working key combinations I won't have 
to write custom handlers for these two menuPick selections.
Do you need to do anything besides plain old copy/paste? If not, then 
those two commands are enough.

I think this is what they mean by "deja vu all over again." :)
--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Right click menu on Windows

2004-08-24 Thread Sarah Reichelt
Is it possible to simulate a key combination click?
I'm trying to simulate a (Control & C) and (Control & V) from a 
menuPick for "copy" & "paste." I have a popup menu that allows me to 
use a field with textLock true on mouseDown and the textLock false on 
mouseUp. This enables the mouseDown to pass the mouse message to the 
popup.

If I can use the already perfectly working key combinations I won't 
have to write custom handlers for these two menuPick selections.

Mark
I've given up on this. I have a perfectly fine Text editor for my 
import window that works fine with Control-C, Control-V, Control-X, 
Control-Z, and Delete. So trying to call these native handlers from a 
right-click menu has caused all kinds of problems with firing off the 
mouseDown messages. So I'll just add (answer "Use Control-C") messages 
for menuPick items in the right-click menu.

Why do you want to simulate a key combination? Wouldn't it be easier 
just to have your popup menu use the "copy", "paste", "cut" & "undo" 
commands directly?

Sarah
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Right click menu on Windows

2004-08-24 Thread Mark Brownell
On Tuesday, August 24, 2004, at 02:26 PM, Mark Brownell wrote:
Is it possible to simulate a key combination click?
I'm trying to simulate a (Control & C) and (Control & V) from a 
menuPick for "copy" & "paste." I have a popup menu that allows me to 
use a field with textLock true on mouseDown and the textLock false on 
mouseUp. This enables the mouseDown to pass the mouse message to the 
popup.

If I can use the already perfectly working key combinations I won't 
have to write custom handlers for these two menuPick selections.

Mark
I've given up on this. I have a perfectly fine Text editor for my 
import window that works fine with Control-C, Control-V, Control-X, 
Control-Z, and Delete. So trying to call these native handlers from a 
right-click menu has caused all kinds of problems with firing off the 
mouseDown messages. So I'll just add (answer "Use Control-C") messages 
for menuPick items in the right-click menu.

Mark
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Right click menu on Windows

2004-08-24 Thread Mark Brownell
Is it possible to simulate a key combination click?
I'm trying to simulate a (Control & C) and (Control & V) from a 
menuPick for "copy" & "paste." I have a popup menu that allows me to 
use a field with textLock true on mouseDown and the textLock false on 
mouseUp. This enables the mouseDown to pass the mouse message to the 
popup.

If I can use the already perfectly working key combinations I won't 
have to write custom handlers for these two menuPick selections.

Mark
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Right click menu on Windows

2004-08-24 Thread Mark Brownell
On Tuesday, August 24, 2004, at 11:59 AM, Klaus Major wrote:
 popup btn "you btn here"
Oh, popup a button. cool...
thanks, it did help.
Mark
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Right click menu on Windows

2004-08-24 Thread Mark Brownell
On Tuesday, August 24, 2004, at 11:53 AM, Mark Brownell wrote:
Hi,
I'm trying to create a right click menu that come up like in the IDE. 
I want right click control of cut, copy, paste, & clear. My control-C 
and control-V work fine.

Anyone know where to look for this capability?
Mark
from the docs:
on mouseUp theButton
  if theButton is 3 then popup stack "Lookup Options"
  else pass mouseDown
end mouseUp
This looks like the recommended way, I guess.
Mark
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Right click menu on Windows

2004-08-24 Thread Klaus Major
Hi Mark,
Hi,
I'm trying to create a right click menu that come up like in the IDE. 
I want right click control of cut, copy, paste, & clear. My control-C 
and control-V work fine.
Anyone know where to look for this capability?
Create a popup button with the menus you need and put it offscreen...
(I think hiding the button does only work on a mac...?)
Then script:
on mousedown whatmouse
   if whatmouse = 3 then ## right- or control-click!
 popup btn "you btn here"
  end if
end mousedown
Hope that helps...
Mark
Regards
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution