Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: rebol browser???

From: anton:lexicon at: 29-Mar-2002 17:36

Daniel, I tried this program but I was unable to make this browser show anything. From looking at the source, it appears that you are intending for the contents of a web page to be inserted into the box's pane. I would suggest that your program should have an address field, and an info field at the bottom that shows the user what is going on when you press the buttons. Also, you should make sure that all your windows are closed when the program exits. Use unview/all. I don't see a good reason why you need to save a program to a file and do it just to layout some faces. I would simply do it all in memory. If I wanted to look at the source, then I would implement a button "show source" [ view/new src-lay: layout compose [area (form src)] ] where src is the source text. (And don't forget to unview/only src-lay later.) I think you may not be aware of compose. You can compose a new layout block like this (assuming text is a block of strings): blk: copy [backdrop gray across] foreach str text [ append blk compose [text (str)] ] layout blk Regards, Anton.