Skip to content
Snippets Groups Projects
Commit f9bc23a9 authored by Ilka Antcheva's avatar Ilka Antcheva
Browse files

Some improvements.

git-svn-id: http://root.cern.ch/svn/root/trunk@23902 27541ba8-7e3a-0410-8455-c3a389f83636
parent 555659a4
No related branches found
No related tags found
No related merge requests found
...@@ -82,6 +82,7 @@ Begin_Macro(source, gui) ...@@ -82,6 +82,7 @@ Begin_Macro(source, gui)
array[5][1] = 3.01; array[5][1] = 3.01;
//update the table view //update the table view
table->Update(); table->Update();
return table;
} }
End_Macro End_Macro
Begin_Html Begin_Html
...@@ -102,9 +103,11 @@ Begin_Macro(source, gui) ...@@ -102,9 +103,11 @@ Begin_Macro(source, gui)
// Set the selection used // Set the selection used
iface->SetSelection("px > 0."); iface->SetSelection("px > 0.");
// Add a column // Add a column
iface->AddColumn("(px + py) / (px - py)", 0); iface->AddColumn("(px+py)/(px-py)", 0);
//update the table view //update the table view
table->Update(); table->Update();
delete file;
return table;
} }
End_Macro End_Macro
*/ */
...@@ -118,7 +121,7 @@ End_Macro ...@@ -118,7 +121,7 @@ End_Macro
//______________________________________________________________________________ //______________________________________________________________________________
TGTable::TGTable(const TGWindow *p, Int_t id, TVirtualTableInterface *interface, TGTable::TGTable(const TGWindow *p, Int_t id, TVirtualTableInterface *interface,
UInt_t nrows, UInt_t ncolumns) UInt_t nrows, UInt_t ncolumns)
: TGMainFrame(p, 500, 500, kVerticalFrame), TGWidget(id), fRows(0), : TGMainFrame(p, 400, 200, kVerticalFrame), TGWidget(id), fRows(0),
fRowHeaders(0), fColumnHeaders(0), fReadOnly(kFALSE), fSelectColor(0), fRowHeaders(0), fColumnHeaders(0), fReadOnly(kFALSE), fSelectColor(0),
fTMode(0), fAllData(kFALSE), fTableFrame(0), fCanvas(0), fCellWidth(80), fTMode(0), fAllData(kFALSE), fTableFrame(0), fCanvas(0), fCellWidth(80),
fCellHeight(25), fInterface(interface) fCellHeight(25), fInterface(interface)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment