Hi
I am trying to get some ballons to appear in a TAdvStringGrid OnCellValidate event in Embarcadero Builder C++ XE.
In the obejct inspector I have set the Balloon enable property to true. The event code is shown below, but I do not see any balloons when I enter more than 3 characters in the grid. Is there something else I need to do?
void __fastcall TMainForm::Grid2CellValidate(TObject *Sender, int ACol, int ARow,
UnicodeString &Value, bool &Valid)
{
if(Value.Length()>3) {
Valid=false;
Grid2->InvalidEntryTitle="Incorrect Input";
Grid2->InvalidEntryText="Length must be less than 3";
Grid2->InvalidEntryIcon=ieError;
}
else Valid=true;
UnicodeString &Value, bool &Valid)
{
if(Value.Length()>3) {
Valid=false;
Grid2->InvalidEntryTitle="Incorrect Input";
Grid2->InvalidEntryText="Length must be less than 3";
Grid2->InvalidEntryIcon=ieError;
}
else Valid=true;
}