dbgrid.cpp dbtree.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5953 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -100,7 +100,7 @@ int DBGrid::OnTableView(wxString Table)
|
|||||||
(db_Br+i_Which)->i_Which = ValidTable; // Still used ???? mj10777
|
(db_Br+i_Which)->i_Which = ValidTable; // Still used ???? mj10777
|
||||||
if (i == 0) // If the Table is empty, then show one empty row
|
if (i == 0) // If the Table is empty, then show one empty row
|
||||||
i++;
|
i++;
|
||||||
wxLogMessage(_("\n-I-> DBGrid::OnTableView():: Vor CreateGrid"));
|
// wxLogMessage(_("\n-I-> DBGrid::OnTableView():: Vor CreateGrid"));
|
||||||
CreateGrid(i,(ct_BrowserDB->pTableInf+x)->numCols); // Records , Columns
|
CreateGrid(i,(ct_BrowserDB->pTableInf+x)->numCols); // Records , Columns
|
||||||
for (y=0;y<(ct_BrowserDB->pTableInf+x)->numCols;y++) // Loop through the Fields
|
for (y=0;y<(ct_BrowserDB->pTableInf+x)->numCols;y++) // Loop through the Fields
|
||||||
{ // The Field / Column name is used here as Row Titel
|
{ // The Field / Column name is used here as Row Titel
|
||||||
|
|||||||
@@ -126,8 +126,7 @@ int DBTree::OnPopulate()
|
|||||||
if (ct_BrowserDB)
|
if (ct_BrowserDB)
|
||||||
{ // Use the wxDatabase Information
|
{ // Use the wxDatabase Information
|
||||||
Temp0.Printf("%s - (%s) (%s)", s_DSN.c_str(),ct_BrowserDB->catalog, ct_BrowserDB->schema);
|
Temp0.Printf("%s - (%s) (%s)", s_DSN.c_str(),ct_BrowserDB->catalog, ct_BrowserDB->schema);
|
||||||
// Root = AddRoot(Temp0,TreeIc_DsnOpen,TreeIc_DsnOpen,new DBTreeData("Root"));
|
Root = AddRoot(Temp0,TreeIc_DsnOpen,TreeIc_DsnOpen,new DBTreeData("Root"));
|
||||||
Root = AddRoot(Temp0,TreeIc_Smile,TreeIc_Smile,new DBTreeData("Root"));
|
|
||||||
for (x=0;x<ct_BrowserDB->numTables;x++)
|
for (x=0;x<ct_BrowserDB->numTables;x++)
|
||||||
{
|
{
|
||||||
wxYield();
|
wxYield();
|
||||||
|
|||||||
Reference in New Issue
Block a user