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

switching between edit and non edit gadget

 [1/3] from: sdidierjean:ya:hoo at: 28-Mar-2002 10:49


Hello, I have already post for switching between field and info and Brett Handley told me the solution at the end of this mail. 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 ? 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. thanks view layout [ across label "enabled: " check true [ either value [ fld/feel: ctx-text/edit fld/color: svvc/field ] [ fld/feel: ctx-text/swipe fld/color: 180.180.180 ] show fld/parent-face ] return fld: field "Sample text" ]

 [2/3] from: brett::codeconscious::com at: 28-Mar-2002 21:29


Hi,
> 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 http://www.rebol.com 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 http://www.rebolforces.com Brett.

 [3/3] from: sdidierjean:yah:oo at: 28-Mar-2002 17:07


> I did this > because I think it was > closest to your original question, but admittedly > without good documenation it is not simple to > understand.
That's right, some good documentation would be welcome. But thanks a lot for your explanations.
> 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. >
This is what I am going to do, thanks again.