Hello,
We want to assign properties to the inplace editor, and following the example in the Developers Guide, put the code in the OnGetEditorType event handler. However, I'm getting an access violation because the inplace editor hasn't always been created:
//from my code
} else {
AEditor = edNormal;
mainGrid2->NormalEdit->PopupMenu = PopupMenu1; //CRASH, NormalEdit is NULL
}
AEditor = edNormal;
mainGrid2->NormalEdit->PopupMenu = PopupMenu1; //CRASH, NormalEdit is NULL
}
Interestingly, BtnEdit isn't NULL when we come through here on a different branch.
According to the Dev Guide, the inplace editor isn't created until it is actually used. But if that's true, the example of setting spin editors in the Dev Guide couldn't work. Is there something about NormalEdit that is different? Do need to put in a workaround by using PostMessage() at this point to assign the property a little later?
Thanks,
Richard U