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

World: r3wp

[View] discuss view related issues

DideC
24-Mar-2005
[741x3]
View layout [box 300x300 help.gif at 40x50 box 200x150 effect [merge 
gradmul 1x1 100.100.100 100.100.100]]
'gradcol = I mean 'colorize. But may be 'gradcol can help too. Depand 
what you want to do.
View layout [box 300x300 help.gif at 40x50 box 200x150 effect [merge 
gradcol 1x1 100.100.100 100.100.100 ]]
Romano
24-Mar-2005
[744]
i do not know if this is what you need, but exists also an alphamul 
effect
[unknown: 10]
24-Mar-2005
[745x8]
DideC... thanks for the Tip.. But thats a 100% undocumented feature!..I 
cant find it anywhere ..hehe..
I think i need to explain it again...Its very simple actualy...
I do a a: make face [ ....... color: something text: '"OK" ] and 
a  b: make face [ .... ]
Face B moves over Face A.. and Face A has the Word '"OK" ... I like 
to see the word "OK" Through Face B while im dragging Face B over 
Face A... Therefor Face B can be transparent in its own color not 
100% transparent...
With an IMAGE it NO problem... but with 2 faces i simple dont get 
it working...
I thought Its impossible too! .. But thats strange because its that 
difficult  feature...
I read something in Carls Blogging that from the AGG project there 
was a Vote over 4 tupple RGB colors... with the last tupple as alpha 
bending/ transparentcy option? Or did i not understand it quite well..
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] 
???