RebGUI table

Discussion in 'Rebol' started by MaxV, Jul 16, 2010.

  1. MaxV

    MaxV Member

    Hello world,
    I'm using RebGUI, but I don't know how to update a whole table content.
    I'm writing a program that put data in a RebGUI table, but if I alter the data block of the table, the table isn't updated.
    Here an example:
    Code:
    do %rebgui.r
    display "temp" [
    	a: table options ["a" left 0.5  "b" left 0.5 ] data [ 1 2 3 4 5 6]
    	button "1" [  
    		a/data: ["one" "two" "three" "four"]
    		a/redraw
    		]
    ]
    do-events
    
    The redraw don't work! Or I don't understand how to update table...
  2. Graham

    Graham Developer Staff Member

    Max

    The redraw function works on the original series, but you are creating a new series and so redraw doesn't know about it.

    Code:
    insert clear head a/data [ "one" "two" "three" "four" ]
    a/redraw
    
    should work. This applies to all rebgui data series.

Share This Page