Author Topic: Custom CAM Toolbar buttons  (Read 26968 times)

Offline pixelmaker

  • CNC Jedi
  • *****
  • Posts: 1995
    • View Profile
    • pixelmaker
Re: Custom CAM Toolbar buttons
« Reply #15 on: October 28, 2022, 15:44:21 pm »
Hello David
this problem is caused by the CAM toolbar addin when the names are translated.
If there is no translation, like in the English interface, then the icons are not duplicated.
You can see it on mouseover. There is one icon with english mouseover name and one with translated name.

https://www.screencast.com/t/jur6eI0y7KrL

In the video it is to be seen, a translation produces the double Icon. If I remove the translation again, the double icon is gone.

The CAM toolbar addin does not fix the bug that these additional mops do not appear in the context menu. This bothers me much more, since I am not a button clicker

ralf

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7578
    • View Profile
    • Cambam V1.0 French Doc
Re: Custom CAM Toolbar buttons
« Reply #16 on: October 28, 2022, 20:07:47 pm »
Hello Ralf,

It is Eddy that reply to you in the previous post  ;D

++
David

Offline pixelmaker

  • CNC Jedi
  • *****
  • Posts: 1995
    • View Profile
    • pixelmaker
Re: Custom CAM Toolbar buttons
« Reply #17 on: October 29, 2022, 12:39:06 pm »
Quote
It is Eddy that reply to you in the previous post

sorry about that. my mistake.
I read about a French forum in the link, so I associated you with it.

But good that you read along, it is the first time I have seen an error provoked by a translation.
Often when you see something happening, you look for the reason, but you don't find it.
In this case, I had previously written in my forum that I was actually ruling out the language file as the reason.


ralf
« Last Edit: October 29, 2022, 12:44:20 pm by pixelmaker »

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 7578
    • View Profile
    • Cambam V1.0 French Doc
Re: Custom CAM Toolbar buttons
« Reply #18 on: October 29, 2022, 16:15:48 pm »
Hello

Quote
But good that you read along, it is the first time I have seen an error provoked by a translation.

I have had almost the same problem with my plugins with the entity names, depending of the function I'm using to "test" for the entity type, it can return the generic english name or the translated name, maybe the problem is the same with mop types.

with mop, I get the name in english with: CamBam.CAM.MachineOp.MOPTypeName

++
David

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5330
  • Made in England
    • View Profile
Re: Custom CAM Toolbar buttons
« Reply #19 on: October 30, 2022, 15:12:26 pm »
The reason this happens is because the Slotter and Laser Dotter plugins already add an icon to the CAM Toolbar.
Because these are added to the toolbar when CamBam starts, the order in which they are added in relation to the translation plugin and CAM Toolbar plugin is important.
We have no control over the order of execution as far as I know.
« Last Edit: October 31, 2022, 15:30:20 pm by EddyCurrent »
Filmed in Supermarionation