Jon,
Thanks for the suggestion, but it does not answer my question. I stripped my stuff down to the minimal and it didn't work. I had your LocateExample code so I hacked it to have the following:
Added this:Private void isThisFunctionCalled(void)
{
printf("If you see this, Tentative state works\n");
}
Gutted this and added some stuff:
Public void cmd_locateText(char* unused)
{
mdlDialog_openMessageBox(DIALOGID_MsgBoxOK, "Hey ho, lets go", MSGBOX_ICON_QUESTION);
mdlState_setFunction(STATE_TENTATIVE_LOCATE, isThisFunctionCalled);
}
When I run "LOCATE TEXT" and then hit the tentative button, which I have set to be a click of the mouse wheel, I would expect to see printed out in the "dos window" the string "If you........works". I'm not getting that. This has worked in code that has been around since V4 but for some reason, which I can't find documented, it no longer does. Does anyone have an idea as to what's going wrong? Has the user function signature changed? By the way, where are the signatures of the various user functions documented???
Regards,
Andrew