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

Updating the scroll bar in a text-list in /View

 [1/9] from: gchiu:compkarori at: 28-Jan-2001 7:52


On Sat, 27 Jan 2001 05:43:31 -0600 "GS Jones" <[gjones05--mail--orion--org]> wrote:
> When I dynamically update the list elements in a list, > the scroll bar does > not seem to update. I can recreate the behavior in a >From the list archives, Stirling said this before:
The slider does not update on the text list unless you tell it to. I use the following function in my code to update text-list sliders every time I mod the list. The function refers to list/lc. lc is a word in a text-list face that is the number of visible lines of the list. ; updates the bar on the side of a text-list or group of text-lists fix-slider: func [faces [object! block!]] [ foreach list to-block faces [ either 0 = length? list/data [list/sld/redrag 1] [ list/sld/redrag list/lc / length? list/data] ] ] -- Graham Chiu

 [2/9] from: gjones05:mail:orion at: 27-Jan-2001 13:45


> From the list archives, Stirling said this before:
... Thanks, Graham, that worked like a charm. In fact, you've indirectly given me "two for one." I searched the archives (at rebol.org and escribe.com) for "text-list" and did not find a relevant reference. Apparently the search engine at escribe does not handle hyphens correctly. -- Scott

 [3/9] from: gchiu:compkarori at: 28-Jan-2001 9:48


On Sat, 27 Jan 2001 13:45:56 -0600 "GS Jones" <[gjones05--mail--orion--org]> wrote:
> > From the list archives, Stirling said this before: > ...
<<quoted lines omitted: 6>>
> not handle hyphens > correctly.
Oops, you've caught me out [blush]. I didn't check either of the public archives, but checked my own archive - which does handle hyphens <g> So, you got 3-for-one! -- Graham Chiu

 [4/9] from: mike:myers:cybarite at: 27-Jan-2001 16:45


Folks, Can you re-advise the thing that Stirling said before. My ISP seemed to have some trouble this PM and the message containing that was not delivered. P.S. Any reason why View items are on the REBOL list? Did they merge? =========================================================== 1/27/01 1:45:56 PM, "GS Jones" <[gjones05--mail--orion--org]> wrote:
>> From the list archives, Stirling said this before: >...
<<quoted lines omitted: 8>>
>[rebol-request--rebol--com] with "unsubscribe" in the >subject, without the quotes.
[mike--myers--cybarite--com]

 [5/9] from: gjones05:mail:orion at: 27-Jan-2001 16:00


> Folks, > Can you re-advise the thing that Stirling said before. > My ISP seemed to have some trouble this PM and > the message containing that was not delivered.
... Sterling wrote the following reply on 4, Dec 2000 in regard to another issue: (link to archive page) http://www.escribe.com/internet/rebol/m4697.html This answered my question about updating the text-list scroll bar after the list itself has been updated. ...
> P.S. Any reason why View items are on the REBOL list? Did they merge?
... I am unsure whether I understand the thrust of these questions. I ate too many lead paint chips as a child <grin>. If you are asking why I posted questions regarding /View on this discussion list, the reason is only that I assumed that the list pertains to all things REBOL. If you your question pertains to something else, please explain further. Thanks. Hope this has been helpful. --- Scott

 [6/9] from: al:bri:xtra at: 28-Jan-2001 13:05


Mike Myers wrote:
> P.S. Any reason why View items are on the REBOL list? Did they merge?
Because today is the last day that Rebol/View will work? ;-) I'm pretty sure it's OK to discuss all Rebol Core and View stuff on this now, except for Rebol/Express or Rebol/Link, which have their own discussion format . Clarification from Rebol HQ might be a good idea, now that Express is in Beta. Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/

 [7/9] from: allenk:powerup:au at: 28-Jan-2001 11:04


I've added this to the View-FAQ. And for the nostalgic I have updated the archive area, where you meet CID, the father of VID. http://www.rebolforces.com/archive/ Cheers, Allen K

 [8/9] from: gchiu::compkarori::co::nz at: 28-Jan-2001 14:06


On Sat, 27 Jan 2001 16:00:23 -0600 "GS Jones" <[gjones05--mail--orion--org]> wrote:
> > P.S. Any reason why View items are on the REBOL list? > Did they merge?
View issues used to be mainly discussed on the Ally list, but that's now largely fallen into disuse - as most of the active participants are on the "me too rebol/link" list - which is by invitation only. -- Graham Chiu

 [9/9] from: gjones05:mail:orion at: 27-Jan-2001 5:43


Hi, folks, Is this my ignorance or might this be a bug in /View (Windows 0.10.38.3.1). When I dynamically update the list elements in a list, the scroll bar does not seem to update. I can recreate the behavior in a very short example as follows: view layout [ tl: text-list 100x100 button "Add to List" [ tl/lines: [1 2 3 4 5 6 7 8 9 10] show tl ] ] In this example, the text-list starts out empty. Clicking the button adds ten elements to the list, but the scroll bar does not change, nor seem to be have any effect. I've looked through the source and been unable to figure out where I'm going wrong nor where a bug may be. The work-around is to add enough blank elements to the initiated list, so that the scroll bar is in effect. Then changing the list elements will allow the new list to be scrolled. If this reflects my ignorance of REBOL/View, any ideas on how to rectify the problem? If it is an apparent bug, I would like to submit it to RT. Thanks. --- Scott

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted