World: r3wp
[I'm new] Ask any question, and a helpful person will try to answer.
older newer | first last |
Maxim 15-May-2009 [2612] | but once it starts working, it doesn't bug anymore... which is what I find strange about it. |
Graham 15-May-2009 [2613] | not for me .. once it stops .. it maintains this state. |
mhinson 15-May-2009 [2614] | I have been teasing my script into action and not asked any questions for hours... now I am off to bed. |
Sunanda 16-May-2009 [2615] | It would be simple to add the ability to execute a script embedded in the REBOL.org archive of this world, eg: do http://www.rebol.org/aga-execute-post.r?post=r3wp174x26 Provided the post (like the one in the example) consists solely of script. Headers can be added if needed. Is this a common need? |
mhinson 16-May-2009 [2616x2] | As a noob I am more likely to want to copy the script into my editor, then modify it a bit to see if I have understood the example. Just running an example would be handy to check it had no errors in it, but not very educational as far as I can see. As the web public version of the chats is not right up to date I would find improving the AltME client the most usefull thing to help me learn. Paticularly fixing the cut & paste functions & adding mouseless navigation & perhaps the ability to use fixed width font to view code in messages. Thanks, |
And the ability to edit previous messages to correct errors. | |
Graham 16-May-2009 [2618] | I get a 404 on that link at rebol.org |
Maxim 16-May-2009 [2619] | I think it was potential idea. |
Graham 16-May-2009 [2620] | because the clipboard is problematic .. I think it's a good idea. |
mhinson 16-May-2009 [2621x3] | Something I have learnt today... I have been looking again at some of the examples I have been given here & now I have a bit more understanding of Rebol I am able to reformat the examples into multiple lines and indent them appropiatly which makes them more understandable for a noob like me. I needed enough understanding to see where one complete statement part ended & the next one began before I could do this. What I have learnt is that I should have tried harder, sooner to do this & it would have speeded up my learning... I am looking at graphics today & giving parse a break for the rest of the weekend. |
Is there a document that describes each feature in view and all the options etch please? e.g. for slider So far I can find tutorials that mention some aspects of slider, but nothing complete. | |
etch=etc. | |
Henrik 16-May-2009 [2624x2] | First, there needs to be a distinction between VID and View. View is the basic display engine, faces, feel. (lower level). VID is the layout dialect, styles, etc. (higher level) |
With that in mind: http://www.rebol.com/docs/view-system.html | |
mhinson 16-May-2009 [2626] | so slider is part of VID? |
Henrik 16-May-2009 [2627] | yes and no. it's a VID face, which is a more complicated version of a face. You would typically lay it out with VID and you would use and manipulate it with View functions. |
mhinson 16-May-2009 [2628] | ok |
Henrik 16-May-2009 [2629x2] | You could create and manage a layout with View alone, but it would be a lot harder, since you have to specify faces manually. That's why VID was created. |
? face will show you a basic face. ? system/view/vid/vid-face will show you a VID face. | |
mhinson 16-May-2009 [2631] | I have not quite understood what a face is yet. I quite like learning by going through command descriptions, but it seems tricky to find them with Rebol. Perhaps I should try & write the ones I need in the Wiki? It seems strange that slider is not documented anywhere. |
Henrik 16-May-2009 [2632x5] | Then there is also DRAW, which is another engine used in conjunction with View. In REBOL 2 it works as a slap-on solution to more complex drawing with anti-aliasing, etc. It also has a separate font rendering engine, but DRAW is close to useless for layout. It's best for pretty drawings, that do very little. REBOL 2 generally suffers here with multiple overlapping solutions for slightly different purposes, so it can be a bit confusing. View and VID is probably the most hacked part of REBOL. In REBOL 3, DRAW is the only engine combined with the concept of GOBs: Light weight graphical objects. There are now 3 wholly separate parts and that concept is much less confusing. |
VID (and slider) is not very well documented. | |
If you do: ? face you'll see that a face is a simple object. If you do something like: f: make face [] view f It'll display a gray area in the upper left corner of your screen. View simply takes that object and converts it into graphics. | |
With the above example, you are using View alone without VID. | |
That's about as fundamental you can get. Now, a more complex layout consists of many faces and this works by grouping them in a tree of objects. In the FACE object, there is an entry called PARENT-FACE, which is how faces are grouped together in a tree. PARENT-FACE can be another face object or a block of face objects. This is fundamentally how a typical View layout works, and you can build a layout like this by hand, by creating each face, setting position and size, color, text, etc. for each face, and put them together in a tree and display them with View. | |
mhinson 16-May-2009 [2637] | I see the grey square... and I probed f too to see how the object is made.. |
Henrik 16-May-2009 [2638] | I'm sure you can now figure out, that if you did something like: f: make face [offset: 100x100 size: 200x200] You can figure out what happens. :-) |
mhinson 16-May-2009 [2639x3] | I can guess, but I need to know how to know for sure. |
I think I can work it out | |
? f shows offest & ? f/offset shows F/OFFSET is a pair of value: 479x202 I guess that is as much as I can find out about offset? | |
Henrik 16-May-2009 [2642] | yes, offset is just a pair which positions the upper left corner of the face. nothing else. |
mhinson 16-May-2009 [2643] | so I suppose the slider must have some exposed face I could find if I keep hunting |
Henrik 16-May-2009 [2644x2] | it's jumping a little far, but essentially the face tree I talked about is where the slider would be. |
if you make a layout with VID, a set-word! would allow you to reference a single face: view layout [ button field s: slider ] escape to console ? s brings up the slider face. | |
mhinson 16-May-2009 [2646x2] | is there a list of documented featurs so I can try to avoid using the undocumented ones like Slider please? |
Or is the graphics stuff really an experimental addon? | |
Henrik 16-May-2009 [2648] | It's not experimental, but just not very well documented. I suggest you try the VID style tree in the REBOL desktop under REBOL/REBOL Tools. |
mhinson 16-May-2009 [2649] | It dosnt work. it just says missing file http://www.codeconscious.com/rebsite/vid-ancestry.r |
Henrik 16-May-2009 [2650x2] | It works fine here in REBOL/View 2.7.6. |
are you connected in the lower left corner? | |
mhinson 16-May-2009 [2652x2] | REBOL/View 2.7.6.3.1 |
it says local. | |
Henrik 16-May-2009 [2654x2] | Click the "local" text and it will connect and allow you to download the script. |
In that script you can see the style tree, all styles available in VID. Click on the style will give you the source code for that style. | |
mhinson 16-May-2009 [2656] | That is very good... I was wondering if there was a tree type view of some of the functions in Rebol. |
Henrik 16-May-2009 [2657] | After this, probably go to Demos and Easy VID, for a simple VID tutorial (unfortunately it was never completed, but it has good parts) |
mhinson 16-May-2009 [2658x2] | Thanks for your help again :-) I can see I could spend hours looking at the tree view alone... I had a quick look at the view top when I first instaleld it, but it was all too advance for me then, and then I forgot that it existed. |
I have studied all the information about VID that I can find, for 2 hours mostly trying to find out how to use a slider that is shown horizontaly, rather than verticaly but I cant find where this is described. Have deliberatly not asked how I do this because I want to learn how to find the answers to these sorts of questions myself.. Without telling me the answer directly, can anyone suggest how I should learn to find this information for myself please? | |
Maxim 16-May-2009 [2660x2] | there is another VID base doc, simpler, might help you start. http://www.rebol.com/docs/view-guide.html honestly, I literaly learned all of the VID tricks my doing this: |
probe face | |
older newer | first last |