World: r3wp
[View] discuss view related issues
older newer | first last |
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 !! |
Ammon 23-Mar-2005 [699x2] | If you set it to true then it gets replaced (changed from a Logic! value to an Image! value) with the background or transparent area of the face so that the background doesn't recalculate itself... |
You're welcome! | |
[unknown: 10] 23-Mar-2005 [701] | :) |
Ammon 23-Mar-2005 [702x2] | On all things View, the best reference that I have seen yet is http://www.dobeash.com/it/rebgui/ |
The information I just gave is available there... | |
[unknown: 10] 23-Mar-2005 [704] | heee i dont know that url ;-) Thanks again! |
Ammon 23-Mar-2005 [705] | NP |
[unknown: 10] 23-Mar-2005 [706x4] | HA ! |
There it is !! the FormDesigner ... | |
is was searching for that one for a long time... | |
Wasnt there an GUI builder too ? | |
Ammon 23-Mar-2005 [710] | Uhm... There have been a number of them built but none of them have passed Alpha stage if they ever actually hit what could be called Alpha... |
[unknown: 10] 23-Mar-2005 [711x2] | Yes i think that was 3 years ago... |
never heard anything from it again | |
Ammon 23-Mar-2005 [713x3] | http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=layout-1.8.r |
I played a little with a script that Carl wrote to demonstrate how to build a GUI builder but ultimately decided to rebuild my own. | |
I had Bo build me an engine for creating faces for the IDE I'm writing but have since decided to use GLayout as my GUI engine which makes the engine Bo wrote obsolete. | |
[unknown: 10] 23-Mar-2005 [716x2] | Glayout ?? |
Mmmm | |
Ammon 23-Mar-2005 [718] | http://www.rebol.it/~steel/is the homepage for GLayout... |
[unknown: 10] 23-Mar-2005 [719] | aaa Right... yes i know that, but i actualy never used it... |
Ammon 23-Mar-2005 [720] | It is getting better and better as we improve it for use in Anvil... |
[unknown: 10] 23-Mar-2005 [721] | lets have a look again then ;-) |
Ammon 23-Mar-2005 [722] | Scrollpanes are in the middle of getting a revamp which will include an enhancement or two to the layout engine itself but the revamp isn't available yet... |
[unknown: 10] 23-Mar-2005 [723] | the complete website has a new layout too ;-) |
older newer | first last |