Hi Jeremy, > Not seeing it?
Means I cannot find any code example sin the doc showing how to trap for this key pressed. I didn’t mean I was actually looking for the space key results? And in this scenario I’m not concerned with data entry, per se. So…. I don’t think I can do it with native 4D code then. My scenario is simple (like other programs): When the space bar is pressed I want the cursor to change to a little hand and then as I move the mouse the diagram moves (actually scrolls) around. Seems so simple… Thanks for your help, John... > > Not seeing it? The space bar produces a space character, which you can't see > unless the app you are using can show invisible spaces, like Pages, Word, > BBEdit and so on. > > There are two kinds of keys on a computer keyboard: > > 1) character keys (think thing) > 2) modifier keys (think state) > > The space bar is a character key. It's also invisible. > > The keys you mention (Caps, Shift, Command, Control, and Alt) are modifier > keys. They have state (pressed or not) which you can detect by calling: > Caps lock down > Shift down > Macintosh command down > Macintosh control down > Macintosh option down > Windows Alt down > Windows Ctrl down > > When the user is entering text, you could detect that the space bar was > pressed (producing a space character) with the "Get edited text” command. > > For more details, see: > http://doc.4d.com/4Dv15R5/4Dv15R5/4D/15-R5/Get-edited-text.301-2936945.en.html > >> Hi All, >> >> 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? >> >> Anyone know? >> >> Thanks, >> John... >> > ********************************************************************** 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] **********************************************************************

