There is alternative, a bit simpler way of adding these multi state controls without merging the whole project.
Some of the attached files have been modified and stripped.
You cannot benefit from Security, Audit and Database features - for these you need to follow the steps James listed.
It wouldn't surprise me if you find bugs or something that doesn't work (I think I checked all of it but...).
This is the list of files required for each control (you can add either or both controls):
BasicButtonMultistate Multistate
-------------------------- -------------------------
AHMIClassLibrary.dll AHMIClassLibrary.dll
BasicButtonMultistate.vb Multistate.vb
ctrlBasicButton.vb ctrlMultiState.vb
BasicButtonDesigner.vb MultistateDesigner.vb
BasicButtonDesignerForm.vb MultistateDesignerForm.vb
ColorPicker.vb ColorPicker.vb
AppModules.vb
Alignment.vb
Padding_Ctrl.vb
ImageSelector.vb
ResourceImages.vb
As you can see, the only common files for both controls are the dll file and ColorPicker.
These are the steps to add these controls to existing AHMI project:
1) Download the attached Resources.7z file and extract all the files
2) Right-click the AdvancedHMIControls project and click Properties, point to Resources and under Images add as Existing Item all the extracted files
3) Download the attached MultistateControls.7z file and extract all the files
4) Add a new folder to the AdvancedHMIControls\PurchasedControls folder and name it "MultistateControls"
5) Right-click this new folder, point to Add and click Existing Item
6) Browse to location of the extracted files and select AHMIClassLibrary.dll
-
once this file is added then add it as a reference to both AdvancedHMI and AdvancedHMIControls projects7) Keep repeating step 5 for each of the files that you require from the above list (this means add them one by one)
- don't add any files that are not in the list. All other files will be added automatically
Close all open forms and rebuild solution
Use the built-in Editor (designer) to manipulate the Messages.The button control is slightly different since I chose to have the Highlight/HighlightAlternate properties be standalone and of a higher priority than either of the states back colors.
This makes the button control a sort of the quad state control.
You can use the attached Messages Import Test.txt file to test the import feature of the Multistate control.
There is even simpler way of adding the MultiState control in the reply #58, further below.