Re: data grid - contextual menu

2009-05-04 Thread Trevor DeVore

On May 2, 2009, at 7:34 PM, Shao Sean wrote:


[apologize in advanced if this is a double post]

This seems to work and unless Trevor chimes in and says not to do it  
this way, it seems to work just fine


on mouseDown pButton
 if (pButton = 3) then -- right click
   dgMouseDown pButton
   # do context menu stuff
 else
   pass mouseDown
 end if
end mouseDown


Yes, this is how you would display a contextual. I haven't added this  
to the docs yet but I did cover this and some other even related  
information in the webinar the other day.


Regards,

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Developer Resources: http://revolution.bluemangolearning.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


data grid - contextual menu

2009-05-02 Thread Shao Sean
I am popping up a contextual menu on mouseDown with button 3 (ie.  
right-click, control-click) but the data grid list is not getting  
hilighted so the old hilighted line's information is showing up.. I  
have tried click button 1 at the mouseLoc before popping up my menu  
but to no avail. Anyone tackle this issue yet?

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: data grid - contextual menu

2009-05-02 Thread Shao Sean

[apologize in advanced if this is a double post]

This seems to work and unless Trevor chimes in and says not to do it  
this way, it seems to work just fine


on mouseDown pButton
  if (pButton = 3) then -- right click
dgMouseDown pButton
# do context menu stuff
  else
pass mouseDown
  end if
end mouseDown


Also if you want to check if the user has clicked in the header of  
the table:


if (the short name of the owner of the owner of the target =  
dgHeader) then

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


contextual menu cursor image

2007-05-09 Thread Stephen Barncard
Anyone out there have a little .png file with the 16x16 'contextual 
menu' image?


THis is the one with a little menu (looks like a ladder) to the right 
of a standard arrow and it is not a standard Rev cursor (but a 
standard carbon cursor in osx.)


thanks!

sqb
--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contextual menu cursor image

2007-05-09 Thread Richard Gaskin

Stephen Barncard wrote:
Anyone out there have a little .png file with the 16x16 'contextual 
menu' image?


THis is the one with a little menu (looks like a ladder) to the right 
of a standard arrow and it is not a standard Rev cursor (but a 
standard carbon cursor in osx.)


Weird:  Apple doesn't use it themselves (at least not in their most 
widely used app, the Finder, or in Preview, Stickies, or iMovie), but 
they do spec it here:


http://developer.apple.com/documentation/UserExperience/Conceptual/OSXHIGuidelines/XHIGCursors/chapter_15_section_2.html#//apple_ref/doc/uid/TP40002724-TPXREF101


If we had a message notifying us when the Control key is down without 
another key or a mouseDown I'd probably start using it.  I guess in the 
meantime we'd have to poll for that, no?


Maybe Apple's onto something in blowing that off that part of their own 
spec. ;)


--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contextual menu cursor image

2007-05-09 Thread Stephen Barncard

Richard,
actually it can be done without polling, this is how I'm controlling 
the cursor, with a script in a locked field. works for my particular 
caseymmv...
And I was wrong... there's the image I want as a standard cursor in 
Rev  id 82... there all the time. 'forest for the trees...'.


local tempCurse

ON mouseWithin
 cursorHandler
END mouseWithin

ON cursorHandler 
 SWITCH

  CASE the optionkey is down
   put the defaultcursor into tempCurse
   set the cursor to 112913 --(renumbered from 82)
   set the lockcursor to true
   break
  CASE the controlkey is down
   put the defaultcursor into tempCurse
   set the cursor to 112912
   set the lockcursor to true
   break
  DEFAULT
   set the cursor to tempCurse
   set the lockcursor to false
 END SWITCH
END cursorHandler

ON mouseLeave
 if tempCurse is not empty
then
 set the cursor to tempCurse
 set the lockcursor to false
end if
END mouseLeave



re: I was just at that Apple page just an  hour ago.





Stephen Barncard wrote:
Anyone out there have a little .png file with the 16x16 'contextual 
menu' image?


THis is the one with a little menu (looks like a ladder) to the 
right of a standard arrow and it is not a standard Rev cursor (but 
a standard carbon cursor in osx.)


Weird:  Apple doesn't use it themselves (at least not in their most 
widely used app, the Finder, or in Preview, Stickies, or iMovie), 
but they do spec it here:


http://developer.apple.com/documentation/UserExperience/Conceptual/OSXHIGuidelines/XHIGCursors/chapter_15_section_2.html#//apple_ref/doc/uid/TP40002724-TPXREF101


If we had a message notifying us when the Control key is down 
without another key or a mouseDown I'd probably start using it.  I 
guess in the meantime we'd have to poll for that, no?


Maybe Apple's onto something in blowing that off that part of their 
own spec. ;)


--
 Richard Gaskin


--


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contextual menu

2004-09-29 Thread Klaus Major
Hola Alejandro,
Klaus Major wrote:
Create a pop-up-menu button with all
themenupick handlers
you need and move this button OFF screen...
on mouseup quoi
  if quoi = 3 then
 popup btn your popup button here
  end if
end mouseup
will popup that button when the right
mouse-button is clicked
= control-click on a mac...
Hi Klaus,
Your recipe works perfectly, but
only in one card.
If i move to another card in the same stack
the pop up menu does not appear!
Could you give me a clue about what is
happening and how to fix it?
As Thierry already mentioned, grouping that button/making it
a background should do the job...
Thanks in advance.
al
=
Visit my site:
http://www.geocities.com/capellan2000/
Regards
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: contextual menu

2004-09-28 Thread Alejandro Tejada
Klaus Major wrote:
 Create a pop-up-menu button with all
 themenupick handlers
 you need and move this button OFF screen...
 on mouseup quoi
   if quoi = 3 then
  popup btn your popup button here
   end if
 end mouseup
 will popup that button when the right
 mouse-button is clicked
 = control-click on a mac...

Hi Klaus,

Your recipe works perfectly, but
only in one card.

If i move to another card in the same stack
the pop up menu does not appear!

Could you give me a clue about what is
happening and how to fix it?

Thanks in advance.

al

=
Visit my site:
http://www.geocities.com/capellan2000/



___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re[2]: contextual menu

2004-09-28 Thread thierry
Hi,

 Create a pop-up-menu button with all
 themenupick handlers
 you need and move this button OFF screen...
 on mouseup quoi
   if quoi = 3 then
  popup btn your popup button here
   end if
 end mouseup
 will popup that button when the right
 mouse-button is clicked
 = control-click on a mac...

AT If i move to another card in the same stack
AT the pop up menu does not appear!


Are you sure you can access your button from all your cards ?
I've put mine in a background group and it works perfectly...

HTH,
regards, thierry


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