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

Dynamic Layout w/GPS -Questions?

 [1/2] from: webmaster:windsweptfarm at: 16-Mar-2002 16:02

Dear List, Well I'm back, and on a new tangent. Now that I have data flowing from my GPS to my rebol app I have embarked on a new tangent. I have this position data that is changing as the GPS "travels" and I wish to have it appear in real time in my View layout. I have experimented and managed to get the data to appear in the context of a button . This may not be the final destination but it suffices for my testing phase. The problem is that the entire "layout" is refreshed in the process of renewing the value in the button. Given that the background is a gif image the refresh is very pronounced and most disturbing to watch. How do I update only one element in a layout without reinterpeting the entire layout description and forcing a complete screen refresh? It just dawned on me that there must be some sort of "child" layout container/element that I can create and place my changing position data display into. Am I dreaming or is there such a beast, and what is it called? I would post my code but it is too embarrassing at the moment. One I get this little aspect done I will circulate it for the benefit of others. Thanks in advance. Sincerely, Jim

 [2/2] from: greggirwin::mindspring::com at: 15-Mar-2002 17:19

Hi Jim, If you use 'show on a face, it shouldn't force a refresh of the parent face. Have you tried that? It can be a bit tricky if the face you want to refresh is a large one. REBOL slows down a bit when refreshing large faces. You can get really good response times, though, when refreshing lots of smaller faces that sit on a larger face. Cyphre has some great examples of that technique. --Gregg