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

[REBOL] Re: switching between edit and non edit gadget

From: brett::codeconscious::com at: 28-Mar-2002 21:29

> But how can I do the same thing for button choice or > other gadget ? > I also don't understand how this "ctx-text" "swipe" > and "svvc" work, does anyone have a documentation > about this ?
I should have explained earlier. Sorry.
>> same? svvc system/view/vid/vid-colors
== true CTX-TEXT is an object that contains some functions and objects that VID uses. One of these is Swipe which a "Feel" object. Feel objects make things happen on the screen. Most of the VID styles you use automatically have a Feel object. The Swipe feel object allows the you to highlight the text and copy it with ctrl-c. For example, here are two boxes I give the second one the Swipe feel. lyo: layout [ backdrop ivory box tan "This is some text. Can you copy me?" b: box orange "You can copy me with the mouse." ] b/feel: ctx-text/swipe view lyo I used Swipe in my earlier example to you because that is what the INFO style uses for its Feel object. So my example was swapping the feel object dynamically. I did this because I think it was closest to your original question, but admittedly without good documenation it is not simple to understand.
> What I want to do is only a simple application where > you can visualize informations and modify them by > clicking on a button. If someone have a simple example > of this type of thing I will be gratful.
If you rethink your application you may not need use the techniques I've shown. For example, you may be able to recreate the whole window when a checkbox is enabled or a button is pushed. What I mean is - have one window for editing and another for just displaying your information. Have a look at the Panel How-to on If you want to learn investigate more of the lower level stuff then for other documentation you might be able to get some information from the Beta user guide from the "Archive" on Brett.