Finale SmartMusic
  Home | Log In | Register | Search | Help
   
MakeMusic Forum > Public Forums > Plug-In Development - FORUM HAS MOVED! > FX_LoadEData for EDTTextBlock  Forum Quick Jump
 
You cannot post new topics in this forum. You cannot reply to topics in this forum. Printable Version
[ << Previous Thread | Next Thread >> | Show Newest Post First ]

Peter Trubinov
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailableSend a Private Message to Peter TrubinovAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2010
Total Posts : 2
 
   Posted 4/17/2010 5:15 PM (GMT -6)    Quote This PostAlert An Admin About This Post.
Hello,

I'm in my plug-in trying to get EDTTextBlock data from Finale by calling

FX_LoadEData( ot_TextBlock, &id, &buf, &bufSize );


It reports data size = 48 (if I make a call with the third parameter = NULL) however it fills only first 12 words by real data. In the type definition it is said that last 12 words are unused. Of course documentation (and PDK itself) is of year 1999. However since Finale 2004 there is a new flag used to distinguish between TX entries used for text blocks and those used for text expressions. So these last words of the structure are not unused any more. But I cannot get those data even when I run my plugin with latest Finale versions.

Is it so that FX_LoadEData still gives same amount of data as 10 years ago even though that the type definition is extended? Is there a way to get that extended data?

Thanks a lot,
Peter
Back to Top

Peter Trubinov
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailableSend a Private Message to Peter TrubinovAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2010
Total Posts : 2
 
   Posted 4/21/2010 10:30 AM (GMT -6)    Quote This PostAlert An Admin About This Post.
Okay, thanks for silent support .)

I've found solution myself, it's simple so let it be here for future references.

There is one more parameter in FX_LoadEData function — CONST ELONG version, which is by default equals to PDK version. When I explicitly put 0x0B00020D (which is for Finale 2006 as I think), the function started to return the full amount of data. So now the call looks:

FX_LoadEData( ot_TextBlock, &id, &buf, &bufSize, 0x0B00020D );


All the best,
Peter
Back to Top
You cannot post new topics in this forum. You cannot reply to topics in this forum. Printable Version
   
Forum Information
Currently it is Wednesday, December 11, 2019 2:30 PM (GMT -6)
There are a total of 403,820 posts in 58,165 threads.
In the last 3 days there were 0 new threads and 0 reply posts. View Active Threads