Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FDK - deleting elements

Status
Not open for further replies.

1acer1

Programmer
Aug 14, 2003
14
CZ
Hi all,

I need help: Is there any notification about removing elements in fdk?

I have this problem: When I select some text in FM (containing more elements for example) and then I remove it by selecting Clear in the menu (in this case no notification is coming before deletion, I think), how can I cancel this operation.

And also important for me is: How can I easily obtain the IDs of all the elements I selected?

And more: why are the notifications FA_Note_Pre/PostCopyElement and FA_Note_Pre/PostChangeElement not working?

Thanks's for any help

Ales
 
Hi

There is (strangely) no specific notification for deleting elements but you can use FA_Note_PreFunction & FA_Note_PostFunction which notifies fcode function events including "clear" (see fcodes.h).

To obtain the IDs of all selected elements use FP_ElementSelection property.

Pre & PostCopyElement don't work (submitted as an FDK bug); you can use Pre & PostFunction though.
Pre & PostChangeElement trigger when user changes element definition for an element (for ex. with "Change" button on the "Elements" floating window).

Kerlin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top