r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[View] discuss view related issues

[unknown: 10]
22-Mar-2005
[649x2]
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 ;-)
[unknown: 10]
23-Mar-2005
[686]
Can someone explain me a little closer the use of  'SPAN inside a 
face. Its not quiet clear to me yet..
Ammon
23-Mar-2005
[687]
I believe that it has been depreciated but the idea was to have the 
face scale to the size of a window so that a large face will display 
similarly on a large display (say, 1024x768) as it does on a smaller 
display setting like 800x600
[unknown: 10]
23-Mar-2005
[688x3]
oke thanks !
Another question
Is it possible to create transparent faces? A face over a face.. 
So not an image!
Ammon
23-Mar-2005
[691]
Yes, set the color of the face to NONE
[unknown: 10]
23-Mar-2005
[692]
thats very transparent ;-)
Ammon
23-Mar-2005
[693]
If SAVED-AREA is true then it won't recalculate the transparency 
on redraw...
[unknown: 10]
23-Mar-2005
[694x2]
I just need a little color in it but the backface needs to be visual 
through the front face...
I thought saved-area was for images only ?
Ammon
23-Mar-2005
[696x2]
Color: none effect: [colorize what-ever-color]
Saved-Area is for saving the transparent area of a face...
[unknown: 10]
23-Mar-2005
[698]
Thanks Ammon !!