Hello,
Environment:
Translate .NET Component with Passolo Professional Edition 2016 Version 16.0.412.0
Problem:
Unable to identify ToolStrip elements in a unique way.
UseCase:
I need this because i have two lpu files and have to find the element contained in the one lpu in the other lpu.
Normally I can get the Resource/namespace for elements by calling PslTransString->Resource->ID.
This returns something like a namespace: "Company.Department.DeviceCommunicationEditor.SymbolSetAuthorization".
Using this (+ file + PslTransString.ID) i can build an unique identifier for each element.
But for ToolStrips i get only something like "_toolStrip", which occur multiple times.
So i am not able to uniquely identify ToolStrip elements.
##############################
Answer from Passolo-Support:
This is not a defect in Passolo, this is how Toolstrips are implemented.
If you check the project in dialog, in the tree view, you will see that the toolstrip is listed as separate resource.
This can also be checked if you see the Properties window e.g. entry "_btnLoadBackupFileFromDisc" in Menu "_toolstrip"
This differs from a normal element where the name of the dialog is presented.
To get the unique name you would need to find the parent of the Toolstrip element and combine them.
##############################
So my question is:
How can i find the parent of a ToolStrip element?