Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ondrej Kolenaty

Pages: 1 [2]
16
Hi,

  I am wandering how to set class template type (the one from Class properties/tab Details) to "Instantiated" using the intermediate file.
I found no clue in documentation and this forum.

Thank You.

17
Automation Interface, Add-Ins and Tools / Re: problem with form captio
« on: March 17, 2008, 08:18:47 am »
Hi, this post is quite old. Anyway I have the same problem and I am looking also for the solution. What is the characterset/coding used for EA. I have this problem using EA 7.1.

18
Does anyone know how to get application handle? I need if for Windows function:

Code: [Select]
int MessageBox(          HWND hWnd,
    LPCTSTR lpText,
    LPCTSTR lpCaption,
    UINT uType
);

Thanx.

19
The typecast is wrong. Corect code is:

Code: [Select]
function TEARPlugin.EA_GetMenuItems(const aRepository: IDispatch;
 const aLocation, aMenuName: WideString): OleVariant;
var obj : IDispatch;
begin
 (aRepository as Repository).GetContextItem(obj);
 .
 .
 .
end;

20
Hello,

 I am trying to customize my addin menu based on selected item in GetMenuItems event. I use this code:
Code: [Select]
function TEARPlugin.EA_GetMenuItems(const aRepository: IDispatch;
  const aLocation, aMenuName: WideString): OleVariant;
var obj : IDispatch;
begin
  Repository(aRepository).GetContextItem(obj); // "Repository" is IDualRepository synonym from EA_TLB
  .
  .
  .
end;

But this cause a acces violation error. Please, can anyone tell me what I do wrong?

I have D7, WinXP, EA7.1 (I even tried EA7.0 with freshly imported Type Library, but without success).

Thanx.

21
It seem that only one main menu is allowed. Try to make more add-ins.

22
I have question about the XMLContent attribute of Scenario class. Is this attribte free to store user data by add-ins? Otherwise what it is used for? What is suggessted structure of the XML content.

23
Automation Interface, Add-Ins and Tools / EA 7.1 RichText Editor
« on: February 28, 2008, 08:27:51 am »
I would like to make Add-in that will "paste" a name of selected model element and will be able to update the name on request. I noticed that the richtext is stored as a simple HTML. Is there any possibility how use/extend features of the richtext edit used in EA 7.1?

Pages: 1 [2]