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

[REBOL] Re: VID questions

From: gjones05:mail:orion at: 24-May-2001 11:06

From: "Robert M. Muench"
> Hi, I'm hacking a prototype with /View.
Best way to do it, in my opinion. :-)
> As I hadn't time to dive deep into /View > yet, I'm quite a beginner with it. Here are my questions: > > 1. Is there a way to find out the words of the VID dialect?
To specifically find the words in the VID dialect: probe system/view/vid/vid-words
> 2. Where are things like text-list defined? > Is it possible to see the source for this?
There are several methods that I've seen proposed. The one I use the most is simply perusing the source. If I recall, the way to peruse /View source is through a text printout like so: ;boot to the console mode of /view echo %view-vid-1.2.txt print mold system/view echo none This method was adapted from Larry Palmiter. Then read to your heart's delight. To specifically find text-list, search for that word. Some faces' words are sprinkled through-out, so searching for the case-constrained name is better, like TEXT for text face.
> 3. text-list etc. are prototype objects, right? Any docs available for
these VID
> objects?
Almost too many to mention.;-) These are the two official ones:
> 4. Why is the text list displayed automatically > in the following code? > view layout [ > mylist: text-list > ] > > I would have expected something like: > view layout [ > mylist: text-list > show mylist > ] > > The actual bahavior is quite strange to me as I have to write the code
in the
> order it should be displayed on screen.
I understand what you mean, kind of like the pack command in Tcl, etc. You may need to undergo a small paradigm shift. In this case, 'view is a function that displays the initial face layout. It kicks it off, so to speak. Later, after modifying faces in a layout, 'show allows *just* that face to be updated. It is more processing-efficient than going through 'view again.
> 5. Did anyone wrote an debug object browser? > Something I can call like obj myVIDobject and > which will present a hierarchie like the system > object browser? With this it would be possible > to see the attributes etc. of a VID object.
Yes, actually there have been several, but I can't find any of them. If no one else answers this message thread, consider reasking this specific question again.
> 6. How can I align the text of labes to the right > and have the entry/selection areas appear right > of the lables but left aligned?
Here is one way: view layout [ across text "Name:" 100x24 right field "Your name" return text "Address:" 100x24 right field "Your address" return ] This was borrowed from one fof the references mentioned above. There are other ways, of course.
> Ok, that's it for now. I continue and collect more questions ;-)
Robert Collect and submit: that's the "name of the game." Good luck, Robert. --Scott Jones