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

[REBOL] Re: Bug in Area

From: greggirwin:mindspring at: 2-Nov-2001 13:01

Hi Brett, << Though I think for performance the programmer should have some way to tell the engine to recalculate the cache when he/she has finished manipulating the text. >> There are always lots of ways to look at things. I'm all for performance, but I'm even more in favor of correctness. :) In this case, you would see garbage in the area when you set the text to "". That should be a pretty easy case to handle but I haven't seen how you would trap the changing of a value in an object. I.e. if I'm an area object, I don't get an "event" when someone changes my text value. So, you have to write a function (set-text) that is used for this. Another example can be seen in text-lists. If I load a list with data, then select an item, it is highlighted. Now, I clear the list so it is empty. Now I load it again. If it now contains an item which matches the *original* selected item, it gets highlighted. I.e. it didn't clear the picked value when I cleared the list. Bug or feature? :) Where I see it right now, in my app, it's actually kind of a neat feature but it wasn't intended that way. Scroll bars are also problematic at times. Is there a *definitive* example for how to set the thumb size, link them to another control, and reset them to their default/minimum value? Lots of examples, lots of different approaches. Should /redrag do it all for us? Does it currently? I don't mean to gripe. These are really niggling little things that we *can* solve because of the way REBOL, View, and VID are built. Hopefully RT will make note of the issues that crop up for us and either address them internally or write a definitive FAQ for them. --Gregg