I think you could do something like…
On event call("myeventhandler")
---
`myeventhandler
Case of
:(mousedown) `or maybe ( (mousedown) & (modifiers ?? command key bit))
If(<>top=0)
<>Top:=mouseX
<>Left:=mouseY
Else
<>bottom:=mousex
<>right:=mousey
Move object(*;"myhighlightbox";<>top;<>left;<>bottom;<>right)
End if
Else
If(<>top#0)
move object(*;"myhighlightbox";9999;9999)
<>top:=0
end
End case
---
Does this make sense? First, read the On Event Call docs to learn the secret
key command to disable otherwise you may lock yourself out. And I'm sure I
butchered the syntax for move-object.
From: Peter Mew <[email protected]>
Date: Thursday, October 10, 2019 at 5:57 AM
To: 4D iNug Technical <[email protected]>
Cc: Spencer Hinsdale <[email protected]>
Subject: Re: selecting pixels
Thanks
Could you expand a bit on your reply
Thanks
-pm
On Thu, Oct 10, 2019 at 1:06 PM Spencer Hinsdale via 4D_Tech
<[email protected]<mailto:[email protected]>> wrote:
-> On Event Call `lmk if you need more suggestions
On 10/10/19, 4:12 AM, "4D_Tech on behalf of Peter Mew via 4D_Tech"
<[email protected]<mailto:[email protected]> on behalf of
[email protected]<mailto:[email protected]>> wrote:
A pointer to which commands to read up on would be good enough (I hope)
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:
mailto:[email protected]<mailto:[email protected]>
**********************************************************************
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************