World: r3wp
[View] discuss view related issues
older newer | first last |
Maxim 20-Mar-2005 [636] | merci Vincent |
Allen 21-Mar-2005 [637x2] | Anyone had Norton 2005 worm detection, blocking REBOL/view as a worm called "DeepThroat Trojan Horse" ? I've had it twice today whilst using rebol for ftp uploads |
I'm hoping this a false reading, and my machine hasn't been infected/hijacked | |
Graham 21-Mar-2005 [639] | I tried to send a rebol archive the other day using my hotmail account ( testing attachments with my webmail ) and it said it was infected. Scanned it with bitdefender which said it was clean . |
[unknown: 10] 22-Mar-2005 [640] | Does any one have a HINT on how i can make a dragg & drop Face to DROP within the bouderies of an underlaying face.. I.e. Im dragging a Face over a field of faces, when I drop it on the face below and then the dropped face should FIT itself inside the face below. Is there someting default for this in view/vid ? or do i need to calculate it myself? .. Its a kind of a Puzzle-piece drop... |
Ammon 22-Mar-2005 [641] | Do you have access to the Developer IOS Server? |
[unknown: 10] 22-Mar-2005 [642x2] | Mmmm no... dont have IOS here running... |
Only have SDK en View/pro ... | |
Ammon 22-Mar-2005 [644x2] | Start here... http://www.rebol.com/how-to/feel.html |
That'll at least show you dragging | |
[unknown: 10] 22-Mar-2005 [646x5] | Jaaa thats not the problem |
the problem is to get the face exactly inside the face below | |
when i release the mouse button... | |
currently it drops at the point of release but it should drop inside a boundery of the face below.. | |
I think i need to build a extra fcuntion for it.. | |
Ammon 22-Mar-2005 [651] | You do |
[unknown: 10] 22-Mar-2005 [652] | so nothing there inside View thats able to check this by default then? |
Ammon 22-Mar-2005 [653x2] | Not AFAIK |
I sent you a drag and drop example from Developer (Thanks, Volker) as private message. | |
[unknown: 10] 22-Mar-2005 [655] | aaa lets see... because the drag & drop itself work fine overhere.. thats not the problem... |
Ammon 22-Mar-2005 [656] | So you getting the drop event to the right face? |
[unknown: 10] 22-Mar-2005 [657x3] | yes no problem... |
thanks for the example btw ! did not have that one yet.. | |
perhpas i need to explain it better? | |
Ammon 22-Mar-2005 [660] | Ok, so know which face is getting dropped and which face it is being dropped on, right? |
[unknown: 10] 22-Mar-2005 [661] | yes no problem... |
Ammon 22-Mar-2005 [662] | Then you need to have the face that is being dropped remove itself from its PARENT-FACE/PANE |
[unknown: 10] 22-Mar-2005 [663] | the problem is the make sure that the face which is drop fits into the face below it.. Like a puzzle... |
Ammon 22-Mar-2005 [664x2] | and append itself to the /pane of the face recieving the drop |
Oh, so you need edge dectection? | |
[unknown: 10] 22-Mar-2005 [666x3] | currently it simple drops at the stop of release... but i like to make sure the face is adjusted in coordinates to the face below... |
YES ! | |
edge detection... | |
Ammon 22-Mar-2005 [669] | What if you gave every peice of the puzzle the proper offset and if it gets dropped close enough to the position that it is supposed to be at then it snaps into place |
[unknown: 10] 22-Mar-2005 [670x4] | yes im already that far ;-) the problem is the SNAP! |
I have 100 pieces... but im using 1 face per piece with an id... | |
the problem is the detection of the face Where to SNAP into! | |
if you i.e. use a square face with 4 underlying squares then exactly in the middle it cant make out its drop point ;-) | |
Ammon 22-Mar-2005 [674] | So when the peice gets dropped then you find the location that it should be at, if it is within a certain distance of where it is supposed to be then you set the offset of the puzzle piece to its proper location and remove the drag feel. |
[unknown: 10] 22-Mar-2005 [675x3] | Mmm yes .... |
Didn't Calr put someting inside View for this ? something like 'confine ? | |
im not sure that is for faces.. | |
Ammon 22-Mar-2005 [678x2] | Gregg has some >> ? confine USAGE: CONFINE offset size origin margin DESCRIPTION: Return the correct offset to keep rectangular area in-bounds. CONFINE is a function value. ARGUMENTS: offset -- Initial offset (Type: pair) size -- Size of area (Type: pair) origin -- Lower bound (upper left) (Type: pair) margin -- Upper bound (lower right) (Type: pair) |
I'm sure it was intended for faces... | |
[unknown: 10] 22-Mar-2005 [680x2] | :-) |
Ill try that one again ..lets see if i can get it working with my faces.. | |
Allen 22-Mar-2005 [682] | I use confine and snapping in my drag-feel this script. though it isn't very pretty code example. http://www.rebolforces.com/plugin/gridlock.r |
[unknown: 10] 22-Mar-2005 [683x3] | I thought yo might come up with an exmaple ;-) Ill have a look allen ;-) |
nice puzzle BTW !!! | |
ill check that code if you dont mind me to ;-) | |
older newer | first last |