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

World: r3wp

[View] discuss view related issues

Robert
15-Mar-2005
[627]
Ok, this fixes the problem... Now the text is clipped.
Maxim
20-Mar-2005
[628]
aahhh, no matter how deeply you know something, there is always something 
that gets on your nerve...

changing the button font color seems to be a genuine pain... can 
someone refresh me why its impossible?


this doesn't work... altough I've allocated a stand-alone font and 
have removed all the dynamic code which AFAIK plays around with the 
font or text:



view layout [button "ok" font [color: red] with [feel: make feel 
[redraw: none over: none]]]

yet, this works:


view layout [text "ok" font [color: red] with [feel: make feel [redraw: 
none over: none]]]
Vincent
20-Mar-2005
[629]
you have to set 'colors, not 'color:

view layout [button "ok" font [colors: reduce [red white]] with [feel: 
make feel [redraw: none over: none]]]
for a button with inactive color red and active color white
Maxim
20-Mar-2005
[630x2]
strange I tried it earlier and it didn't work...
so basically, If I try with a font without colors attribute, then 
it should work?
Vincent
20-Mar-2005
[632]
for 'button yes - font/color is a copy of font/colors/1 at  init
Maxim
20-Mar-2005
[633x4]
AHHH that's it... forgot to look in init...
that is evil...
I mean, init swapping the color...
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
[675x2]
Mmm yes ....
Didn't Calr put someting inside View for this ? something like 'confine 
?