Jeff
Guest
|
The problem appears while run two instances of word.
The pointed before fix is a bung.
Realy cause of the situation is changing Control.Parameter for every loading AddIn. |
|
Sergey Grischenko
Add-in Express team
Posts: 7235
Joined: 2004-07-05
|
Hi Jeff,
The addin doesn't affect dot files. It is Word that does this. Information about all command bars and controls is stored in Normal.dot automatically. When loading each instance of Word information about controls properties is retrieved from a template. If you make yor command bar temporary, the values of command bar and its controls properties will be initialize every time Word starts. |
|
Guest
Guest
|
In the first I use version 1.9 from Afalina.
Second It realy changes button controls every loading of an addin, i.e. the following code does not approach
AddButton('Mycommandbar',.....
Inside, the addin code change the property "parameter" of Word. |
|
Dmitry Kostochko
Add-in Express team
Posts: 2880
Joined: 2004-04-05
|
Guest,
Sorry but I can't quite understand what you mean. Could you please describe the problem in more detail?
Sincerely,
ADX Support Team
P.S. If your native language is Russian, please use it :) |
|
Guest
Guest
|
:)
I have the following code:
AddButton(sDocCmdBarName, sDocCheckOutHint, DocMngrCheckOut, '', GetResModeName(sIconDocCheckOut), msoButtonIcon, NewControl, -1, nil, clFuchsia).BeginGroup := true;
AddButton(sDocCmdBarName, sDocCheckInHint, DocMngrCheckIn, '',
GetResModeName(sIconDocCheckIn), msoButtonIcon, NewControl, -1, nil, clFuchsia);
The code run on AddIn_Initialize, i.e. it run every the addin loading.
The procedure AddButton makes "Add" only if the button has not been added on previous Word start.
Nevertheless axpAddIn changes state of the added Button, it uses its property "Parameter" for link Buttons Events with custom handlers. The property is changes every loading Word and change Normal.dot too.
I fixed it by change the source code of axpAddIn, but I made it in the version 1.9 and I do not know whether the bug has been fixed in the new versions of the components. |
|
Dmitry Kostochko
Add-in Express team
Posts: 2880
Joined: 2004-04-05
|
Guest,
Thanks for details. Version 2 doesn't change the Parameter property, neither does it affect this property in any other way.
Could you please in the future place questions related to VCL version in the VCL forum:
http://www.add-in-express.com/forum/read.php?FID=1
Sincerely,
ADX Support Team |
|