04-24-2019, 05:12 PM
W7/64 C++ Builder XE7 (update 1) 32-bit build New IntraWeb Application
Latest IW (.20) brand new license and support update, carefully installed in virgin W7 / XE7 re-installation, unbundle tool used prior to upgrade.
Please see my earlier post just a few back for more info.
I am left with the original TreeView problem - nothing about it seems to work. This is the code in its entirety...
static TIWTreeViewItem *tnp, *snp;
void __fastcall TIWForm1::IWButton2AsyncClick(TObject *Sender, TStringList *EventParams)
///////////////////////////////////////////////////////////////////////////////////////
{
tnp = LogTreeView->Items->Add( NULL );
tnp->Caption = "First Node";
snp = LogTreeView->Items->Add( tnp );
snp->Caption = "First Sub Node";
tnp->Expanded = false;
}
void __fastcall TIWForm1::LogTreeViewTreeItemClick(TObject *Sender, TIWTreeViewItem *ATreeViewItem)
//////////////////////////////////////////////////////////////////////////////////////////////////
{
String us = ATreeViewItem->Caption;
us = us;
}
Just as before, the TV displays expanded with the + and - ineffective, and (double) clicking on one or t'other fails to fire the Click event. I have tried setting AsyncMode (default True) to both T and F, and setting DoServerSidePlusMinus (default True) set both T and F. I added the following code with no success:
void __fastcall TIWForm1::LogTreeViewPlusMinus(TObject *aSender, bool aIsPlus)
/////////////////////////////////////////////////////////////////////////////
{
tnp->Expanded = aIsPlus;
}
Please, what have I missed ?
Denville.
Latest IW (.20) brand new license and support update, carefully installed in virgin W7 / XE7 re-installation, unbundle tool used prior to upgrade.
Please see my earlier post just a few back for more info.
I am left with the original TreeView problem - nothing about it seems to work. This is the code in its entirety...
static TIWTreeViewItem *tnp, *snp;
void __fastcall TIWForm1::IWButton2AsyncClick(TObject *Sender, TStringList *EventParams)
///////////////////////////////////////////////////////////////////////////////////////
{
tnp = LogTreeView->Items->Add( NULL );
tnp->Caption = "First Node";
snp = LogTreeView->Items->Add( tnp );
snp->Caption = "First Sub Node";
tnp->Expanded = false;
}
void __fastcall TIWForm1::LogTreeViewTreeItemClick(TObject *Sender, TIWTreeViewItem *ATreeViewItem)
//////////////////////////////////////////////////////////////////////////////////////////////////
{
String us = ATreeViewItem->Caption;
us = us;
}
Just as before, the TV displays expanded with the + and - ineffective, and (double) clicking on one or t'other fails to fire the Click event. I have tried setting AsyncMode (default True) to both T and F, and setting DoServerSidePlusMinus (default True) set both T and F. I added the following code with no success:
void __fastcall TIWForm1::LogTreeViewPlusMinus(TObject *aSender, bool aIsPlus)
/////////////////////////////////////////////////////////////////////////////
{
tnp->Expanded = aIsPlus;
}
Please, what have I missed ?
Denville.