On windows, it looks like the MouseClick callback of the REALcontrol is not firing. This callback is very important to set the focus on the LexingControl. What do I need to do to get it to fire?
This is what I have for the control definition:
LexingControl.version = kCurrentREALControlVersion;
LexingControl.name = "LexingControl";
LexingControl.dataSize = sizeof(LexingViewData);
LexingControl.flags = REALcontrolOwnsCursor | REALcontrolAcceptFocus| REALcontrolHandlesKeyboardNavigation | REALcontrolHandlesTabKey | REALdontEraseBackground | REALcontrolIsHIViewCompatible | REALcontrolRequiresComposite;
LexingControl.toolbarPICT = 132;
LexingControl.toolbarDownPICT = 132;
LexingControl.defaultWidth = 266;
LexingControl.defaultHeight = 133;
LexingControl.properties = LexingControlProperties;
LexingControl.propertyCount = _countof(LexingControlProperties);
LexingControl.methods = LexingControlMethods;
LexingControl.methodCount = _countof(LexingControlMethods);
LexingControl.events = LexingControlEvents;
LexingControl.eventCount = _countof(LexingControlEvents);
LexingControl.behaviour = &LexingBehaviour;
LexingControl.forSystemUse = 0;
LexingControl.eventInstances = kDisallowedLexingEventInstances;
LexingControl.eventInstanceCount = _countof(kDisallowedLexingEventInstances);
LexingControl.interfaces = NULL;
LexingControl.attributes = NULL;
LexingControl.attributeCount = 0;
LexingControl.constants = Lexing_Constants;
LexingControl.constantCount= _countof(Lexing_Constants);
LexingControl.sharedProperties = NULL;
LexingControl.sharedPropertyCount = 0;
LexingControl.sharedMethods = NULL;
LexingControl.sharedMethodCount = 0;
LexingControl.delegates = NULL;
LexingControl.delegateCount = 0;
LexingControl.enums = NULL;
LexingControl.enumCount = 0;
I am baffled.