Header background name of Inventory Maintenance  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Header background name of Inventory Maintenance

Postby DannyC » Mon Aug 06, 2018 12:13 pm

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
User avatar
DannyC
Senpai
Senpai
 
Posts: 636
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 30

Re: Header background name of Inventory Maintenance

Postby SBarnes » Mon Aug 06, 2018 6:38 pm

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
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Header background name of Inventory Maintenance  Topic is solved

Postby Mike.Sheen » Tue Aug 07, 2018 10:25 am

DannyC wrote:What is the name of the background in 7.2?


The parent control of the header fields is UltraPanel11.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 16 guests

cron