Commit 888cb72c authored by Aleksandr Bakhshiev's avatar Aleksandr Bakhshiev
Browse files

Gui/Bcb: Defauls selected index set to 0,0.

parent 98454eed0c21
......@@ -122,7 +122,6 @@ void TMatrixForm::AUpdateInterface(void)
}
break;
}
}
//
......@@ -192,7 +191,13 @@ bool TMatrixForm::SelectMatrix(const std::string &comp_name, const std::string &
//---------------------------------------------------------------------------
void __fastcall TMatrixForm::FormShow(TObject *Sender)
{
SelectedRow=SelectedCol=-1;
UpdateInterface();
if(SelectedCol<0 && StringGrid->ColCount>1)
SelectedCol=0;
if(SelectedRow<0 && StringGrid->RowCount>1)
SelectedRow=0;
}
//---------------------------------------------------------------------------
void __fastcall TMatrixForm::StringGridSelectCell(TObject *Sender, int ACol, int ARow,
......
......@@ -25,7 +25,6 @@ object MatrixForm: TMatrixForm
DoubleBuffered = True
ParentDoubleBuffered = False
TabOrder = 0
ExplicitTop = -5
end
object Panel2: TPanel
Left = 0
......@@ -36,7 +35,6 @@ object MatrixForm: TMatrixForm
DoubleBuffered = True
ParentDoubleBuffered = False
TabOrder = 1
ExplicitTop = 19
object StringGrid: TStringGrid
Left = 1
Top = 1
......@@ -46,8 +44,6 @@ object MatrixForm: TMatrixForm
Options = [goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine, goRangeSelect, goRowSizing, goColSizing]
TabOrder = 0
OnSelectCell = StringGridSelectCell
ExplicitLeft = 0
ExplicitTop = 6
end
end
object Panel3: TPanel
......@@ -60,7 +56,6 @@ object MatrixForm: TMatrixForm
DoubleBuffered = True
ParentDoubleBuffered = False
TabOrder = 2
ExplicitTop = 262
DesignSize = (
505
51)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment