Highilight customized tab in Epicor form

Hello Experts,

I have an requirement where I need to highlight (something like color the tab) newly tab created ( in ARInvoice Entry ) once the condition is true.

Use Row Rules in a Customization.
(info on the Customization Guide)

Hi Jose,

I need it by code because the condition is based on the code I made it for
ARInvoice Entry.
Is there any way to do that?

Thanks and Regards,
Vishal Sharma

Sure use the notify event to run the custom code

Hi Jose,

thank you for the reply.
Actually the thing is I am not sure the way to color the tab I have created.

I googled it and found it can be achieved by using EpiBasePanel but I don’t
know how exactly how it can be achieved.
So far, this is what I tried:

Epicor.Mfg.UI.FrameWork.EpiBasePanel mnpnl = new
Epicor.Mfg.UI.FrameWork.EpiBasePanel();// Declaring a variable as
EpiBasePanel
mnpnl
=((Epicor.Mfg.UI.FrameWork.EpiBasePanel)csm.GetNativeControlReference(“72899bef-6e06-4bac-add3-c6ea438e2f72”));//
//This is new EpiBasePanel Guid.
UltraDockManager udm = mnpnl.baseDockManager;

I am not sure if I am going in a right way!

Thanks and Regards,
Vishal Sharma

I hate to revive an old thread, but this one is my exact issue, but without a solution.
I want to bring some visibility to a specific tab when there is a value in a certain field. Let say we want to make the Comments tab “highlighted” when there is a comment.
I have gotten the control with GetNativeControlReference and set UseAppStyling = false. However, I can’t set BackColor or Bold the Font.

Anyone have any luck on this. My issue is specifically E10, but I imagine the code would work in E9 too.

1 Like

I dont like color coding, never fair to the color blind :slight_smile: I am sure we can figure it out. But out of curiosity, ask them if instead of color, appending to the tab text a * would work or Comments (new) versus coloring it.

Yeah. Bold with asterisks will work too.

Jason Woods
http://LinkedIn.com/in/jasoncwoods

1 Like

You can change the appearance of the active tab all day long, but the in-active one… I can’t figure out
x here is the MainPane1

var x = csm.GetNativeControlReference("1dff11bc-3024-4d17-acfc-b7af287e274b");
		var bdm =((Ice.Lib.Framework.EpiDockManagerPanel)x).baseDockManager;
		var j = bdm.ControlPanes;
		j[1].Settings.TabAppearance.ForeColor = System.Drawing.Color.Red;
		var settings = j[1].Settings;
		
		
	
		// The PaneAppearances (ActivePaneAppearance, PaneAppearance) affect
		// the area where the control is sited so in most cases, will be covered
		// by the contained control but for controls that alter their own size
		// (e.g. autosized textbox, etc) part of the background of the pane will 
		// be visible. this area is affected by the 2 mentioned appearances
		settings.ActivePaneAppearance.BackColor = System.Drawing.Color.Red;
	
		// The following affect the appearance of the respective item when the
		// associated pane is the active pane. to determine which is the active
		// pane, you can use the dock manager's 'ActivePane' property
		settings.ActiveSlidingGroupAppearance.BackColor = System.Drawing.Color.Red;
		settings.ActiveTabAppearance.ForeColor = System.Drawing.Color.Red;
		settings.ActiveTabAppearance.BackColor = System.Drawing.Color.Red;
	
	
		// The 'HotTracking' appearances properties affect how the respective areas
		// appear when the mouse is over the associate element
		//
	
		// This will affect how the caption area appears when the mouse is moved
		// over the caption area
		settings.HotTrackingCaptionAppearance.ForeColor = System.Drawing.Color.Red;
	
		// The following does the same but for the sliding group buttons in a 
		// 'SlidingGroup' style group pane
		settings.HotTrackingSlidingGroupAppearance.ForeColor = System.Drawing.Color.Red;
	
		// The following affects the appearance of the tab under the mouse
		settings.HotTrackingTabAppearance.ForeColor = System.Drawing.Color.Red;
	
		// The following appearance properties are the default properties
		// for the respective items when they are not active and the mouse
		// is not over the item
		
		// PaneAppearance is the default appearance for the pane content area 
		// (the area containing a control or other panes),
		settings.PaneAppearance.BackColor = System.Drawing.Color.Red;
	
		// SlidingGroupAppearance is the default appearance for a sliding group 
		// button
		
	
		// TabAppearance is the default appearance for tabs - both those
		// displayed for items grouped together in a 'TabGroup' style 
		// DockableGroupPane and for the tab used to represent an unpinned
		// DockableControlPane in the UnpinnedTabArea
		settings.TabAppearance.BackColor = System.Drawing.Color.Red;
		settings.TabAppearance.BackColor2 = System.Drawing.Color.Red;
		
	
		// The 'CaptionAppearance' affects the appearance of all panes but
		// can be overriden for the active control by changing the
		// 'ActiveCaptionAppearance' property.
		settings.CaptionAppearance.BackColor = System.Drawing.Color.Red;
		settings.CaptionAppearance.BackColor2 = System.Drawing.Color.Red;
		
		settings.CaptionAppearance.ForeColor = System.Drawing.Color.Red;
	
	
		// The 'Appearance' property is the default appearance for the caption,
		// tab, sliding group and pane area. Setting properties on the
		// 'Appearance' property will affect all those areas unless overriden
		// at a lower level - i.e. via one of the other appearance properties
		// listed above
		settings.Appearance.BorderColor3DBase = System.Drawing.Color.Red;

image

2 Likes