Hi,
below you see some code.
And the debug output shows that the functions pointers returned by
REALGetEventInstance are for the event in list after the one I queried.
Has someone an idea?
And this happens only for RB 2007. For RB 5.5 it works.
static REALevent testEvents[] = {
{ "someevent1"}, // 0
{ "someevent2 as boolean" },
{ "someevent3 as boolean"}, // 2
};
REALclassDefinition testClass = {
kCurrentREALControlVersion,
testMBS,
nil,
sizeof(testClassData),
0,
(REALproc) testConstructor,
(REALproc) testDestructor,
testProperties,
sizeof(testProperties)/ sizeof(REALproperty),
nil,
0,
testEvents,
sizeof(testEvents)/sizeof(REALevent),
};
void Installtest(REALobject htmlviewer, REALobject delegate)
{
for (int i=0;i<=19;i++)
{
DebugMessage(testEvents[i].declaration,i);
void
*f=REALGetEventInstance((REALcontrolInstance)delegate, &testEvents[i]);
DebugMessageHex("fp",long(f));
}
};
Gruß
Christian
--
Around twelve thousand functions in one REALbasic plug-in.
The Monkeybread Software Realbasic Plugin v7.0. Now universal!
<http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>