John:

Get mouse to return the mouse location or, if you need the data only when
the mouse is over a specific object, you can use On mouse enter to enable
your event handler and then shut it off On mouse leave. If the object in
question doesn't respond to those events, you could either put a very large
button over the object or, if that won't work, create a "border fence"
around the object to capture the mouse enter and mouse exit.

Once the mouse is in the hot zone, the event handler will monitor the event
queue and you can capture use of the spacebar using the event handler and
the Keystroke command.



--
Douglas von Roeder
949-336-2902

On Fri, Oct 21, 2016 at 2:58 PM, truegold <[email protected]> wrote:

> Hey Tim,
>
> > Yes, that is how you would handle knowing if the space bar was pressed.
> Use ON EVENT CALL.
>
>
> Well the challenge is that I need it to run all the time the mouse is over
> the digram. So maybe I’ll start with another key like Option and get it
> working before I go the “On event Call”’ route.
>
> Appreciate,
> John...
>
> > > I can’t seem to find which 4D command, if any, returns that the
> spacebar is depressed? Or any key (other then above) for that matter?
> > >
> > > I’ve been trolling through the docs: 'User Interface' and found:
> > >
> > > Caps lock down
> > > Shift down
> > > Macintosh command down
> > > Macintosh control down
> > > Macintosh option down
> > > Windows Alt down
> > > Windows Ctrl down
> > >
> > > But other keys? Probably simple and I’m not seeing it?
> > >
> > > Maybe combination of KeyCode and On EVENT CALL?
> >
> > Yes, that is how you would handle knowing if the space bar was pressed.
> Use ON EVENT CALL.
> >
> > Tim
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************
>
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to