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]
24-Mar-2005
[752]
I just think its not possible..as DideC mentioned...
Ammon
24-Mar-2005
[753]
;Try this:
view layout [
    text "Testing..." black white
    box "drag box" 50x50 effect [merge colorize green] feel [
                engage: func [face action event] [
                        if action = 'down [start: event/offset]
                        if find [over away] action [

                                face/offset: face/offset + event/offset - start
                                show face
                            ]
                    ]
            ]
]
[unknown: 10]
24-Mar-2005
[754x7]
F*CK!!!!
In the positive way ;-)
So whats up with the 'Merge , where is it documented ?
Lets see if i can rebuild your exmaple into mine...
Aaaaaaaaaa works fantastic !!!!
1000 times thanks!
although i still need to find the description of 'merge
Ammon
24-Mar-2005
[761]
Notice that it is actually COLORIZE that is handling the transparency, 
Merge enables it.  Colorize is ADDING color so any dark colors behind 
the face are not going to be very colorized...
[unknown: 10]
24-Mar-2005
[762x2]
yes you told me yesterday but then i could not get it working... 
so its the merge...
aaa im helped very well thanks !
Ammon
24-Mar-2005
[764]
Yesterday I had forgotten about the need to MERGE...  You're welcome!
DideC
24-Mar-2005
[765x2]
I were trapped by 'merge needs 2 years ago. So I can't forget it 
now.
No doc that I know off, except some messages in ML may be.
ie: http://www.escribe.com/internet/rebol/m27679.html
[unknown: 10]
24-Mar-2005
[767x2]
Thanks for seeking ;-)
AH..that note for Holger is one for the FAQ!
Ashley
24-Mar-2005
[769]
Updated http://www.dobeash.com/it/rebgui/facets.html(section 5.9) 
with above information / references.
[unknown: 10]
25-Mar-2005
[770]
Another issue ;-) perhpas someone hace a quick hint how to handle 
it ?
Brock
25-Mar-2005
[771]
Saw this entry in the cookbook... http://www.rebol.net/cookbook/recipes/0056.html
[unknown: 10]
25-Mar-2005
[772x2]
I have 3 faces...all 3 of them i like to drag & drop.. But the face 
that currently is dragged need to move OVER the other faces..not 
under! So how do i make the current face float over the others ?
Currently its in the order of creation in pane:[] I could shift in 
there...
Brock
25-Mar-2005
[774]
When I move the mouse into or out of the window slowly, in either 
the top or left edge, it doesn't recognize the mouse-over/out
[unknown: 10]
25-Mar-2005
[775x2]
I have seen that problem too sometimes...
What view version do you use ?
Ammon
25-Mar-2005
[777]
;From http://www.rebol.com/how-to/feel.html

view layout [
    size 240x240
    style dragbox box 40x40 font-size 11 feel [
        engage: func [face action event] [
            if action = 'down [
                face/data: event/offset
                remove find face/parent-face/pane face
                append face/parent-face/pane face
            ]
            if find [over away] action [

                face/offset: face/offset + event/offset - face/data
            ]
            show face
        ]
    ]
    dragbox "Box 1" navy
    dragbox "Box 2" teal
    dragbox "Box 3" maroon
    dragbox "Box 4" gold
]
[unknown: 10]
25-Mar-2005
[778]
aaa right.... remove and append ;-) I thought that would do it too.. 
 great thanks !
Ammon
25-Mar-2005
[779]
NP
[unknown: 10]
25-Mar-2005
[780]
Mmmm although I dont use Layout... so i need to be creative ;-)
Ammon
25-Mar-2005
[781]
Not using layout won't affect that one bit
[unknown: 10]
25-Mar-2005
[782]
Yes i see ;-) just found parent-face ;-)
Ammon
25-Mar-2005
[783]
It is the code in the middle you're looking for...  The Remove and 
Append to the parent-face's pane
[unknown: 10]
25-Mar-2005
[784]
Aaa works like a sunny ;-)
Ammon
25-Mar-2005
[785]
That particular How-To is EXTREMELY useful and not known nearly well 
enough...
Brock
25-Mar-2005
[786x2]
Rebolingth, I tried on earlier and later beta versions.
1.2.56.3.1 is what I've been using on a regular basis now.
[unknown: 10]
25-Mar-2005
[788x2]
Its a great feel example...
Brock... Lets see what it does here...1 moment..
Ammon
25-Mar-2005
[790]
On the Window level face, does the Options block contain [All-Over] 
???
[unknown: 10]
25-Mar-2005
[791x4]
jups that does it..
ammon...
do you know if it possible to create transparent 'DRAW faces too 
?
I mean ..using fill-pen in combination with 'merge colorize
Ammon
25-Mar-2005
[795]
Yeah, that should work just fine
[unknown: 10]
25-Mar-2005
[796x2]
I was uable to so far
Mmm look ;-)
Ammon
25-Mar-2005
[798]
Really?  Not merging?
[unknown: 10]
25-Mar-2005
[799]
then I just must be trying harder ;-)
Ammon
25-Mar-2005
[800]
Example?
[unknown: 10]
25-Mar-2005
[801]
well what is use is ie.   effect: [ merge colorize draw [ circle 
100x100 90 ]]