anchor.diff:  	Result ->
   	    [list_to_tabrec(Tab) || Tab <- Result]
       end.
  +
  +col2key(0) -> #tab.name;
  +col2key(1) -> #tab.size;
  +col2key(2) -> #tab.memory;
  +col2key(3) -> #tab.owner;
  +col2key(4) -> #tab.reg_name;
  +col2key(5) -> #tab.id.
   
   list_to_tabrec(PL) ->
       #tab{name = proplists:get_value(name, PL),
  
positive.code: 	    self() ! Error,
  	    {noreply, State};
  	Tables ->
  	    Tabs = update_grid(Grid, Opt, Tables),
  	    wxWindow:setFocus(Grid),
  	    {noreply, State#state{opt=Opt, tabs=Tabs}}
      end;
  
  handle_event(#wx{event=#wxSize{size={W,_}}},  State=#state{grid=Grid}) ->
  
negative.code: handle_event(#wx{id=?ID_REFRESH},
  	     State = #state{node=Node, grid=Grid, opt=Opt}) ->
      Tables = get_tables(Node, Opt),
      {Tabs,Sel} = update_grid(Grid, sel(State), Opt, Tables),
      Sel =/= undefined andalso wxListCtrl:ensureVisible(Grid, Sel),
      {noreply, State#state{tabs=Tabs, selected=Sel}};
  
  handle_event(#wx{event=#wxList{type=command_list_col_click, col=Col}},
  	     State = #state{node=Node, grid=Grid,
  			    opt=Opt0=#opt{sort_key=Key, sort_incr=Bool}}) ->
      Opt = case col2key(Col) of
  	      Key -> Opt0#opt{sort_incr=not Bool};
  	      NewKey -> Opt0#opt{sort_key=NewKey}
  	  end,
      Tables = get_tables(Node, Opt),
      {Tabs,Sel} = update_grid(Grid, sel(State), Opt, Tables),
      wxWindow:setFocus(Grid),
      {noreply, State#state{opt=Opt, tabs=Tabs, selected=Sel}};
  
  handle_event(#wx{id=Id}, State = #state{node=Node, grid=Grid, opt=Opt0})
    when Id >= ?ID_ETS, Id =< ?ID_SYSTEM_TABLES ->
  