Page 1 of 1

Header background name of Inventory Maintenance

PostPosted: Mon Aug 06, 2018 12:13 pm
by DannyC
In the 157 and 175 versions I have a plugin which changes the colour of the inventory header background based on the item status.
I use this code
Code: Select all
inventoryForm.TableLayoutPanel1.BackColor = System.Drawing.Color.Red


In 7.2 TableLayourPanel1 doesn't exist and I can't find the name of it via the Set Permissions.
What is the name of the background in 7.2?

Cheers

Re: Header background name of Inventory Maintenance

PostPosted: Mon Aug 06, 2018 6:38 pm
by SBarnes
The quickest way to be able to find this for yourself is to do one of the following:

Method A
1. Create a winforms application

2. Add the Jiwa controls to the toolbox by choosing the Jiwa Application DLL.

3. Add an inherited form to the project and when choosing the form to inherit from browse to the Inventory UI DLL and use that

You'll end up with a new form that has everything on it that the inventory form does. Of course this must be done on a machine with the infragistics controls and spread controls installed for it to work but you have access to those.

Method B

The other way to do it use Telerik just decompile and read through the Initalize Component method for the inventory form looking for one of the names of the controls you know are on the header and see what container the control gets added to i.e. whats its parent. This is actually the code that Visual Studio designer uses to draw the form and Jiwa uses as well

Re: Header background name of Inventory Maintenance  Topic is solved

PostPosted: Tue Aug 07, 2018 10:25 am
by Mike.Sheen
DannyC wrote:What is the name of the background in 7.2?


The parent control of the header fields is UltraPanel11.