Color Change

Prem
Member Posts: 34
Hi Friends
I would like to change the Color of the Main Menu based on the Companies selected. any one with any suggestions pls..? :?:
Cheer's
Prem
I would like to change the Color of the Main Menu based on the Companies selected. any one with any suggestions pls..? :?:
Cheer's
Prem
0
Comments
-
Hi Prem,
Easiest way I can think of is this:
Create a new "Shape" (as per the "beige" in attain).
Set the "BackColor" to the color you want.
Set "Visible" to NO
Set the "Name" to the color of you have chosen (i.e. Green,Yellow,Red etc...)
Place this new shape OVER the current "beige" setting.
Repeat the above steps for the amount of companies that you have.
then write the following code in the OnAfterGetRecord() trigger:
if COMPANYNAME=A then
Currform.Beige.Visible(True);
if COMPANYNAME=B then
Currform.Green.Visible(True);
if COMPANYNAME=C then
Currform.Yellow.Visible(True);
You must remeber to set the property of the current shape ("Beige") to NO otherwise this will always show.
Hope that helps.
DeanRemember: Keep it simple0 -
I think rather than in onaftergetrecord the code should be in onOpen trigger. because the companyname is not changing here0
-
I think rather than in onaftergetrecord the code should be in onOpen trigger. because the companyname is not changing here
True :oops: ,
But the delay would not be noticable so i didn't think it mattered too much???Remember: Keep it simple0 -
Hi Friends
Thanks for ur Reply but this is not the solution which i am looking for... i had done this already... what i want is that the user would like to change the color of the company as they wish... i mean give them the option of the 9 colors and may be on the company info they can choose it..
Cheer's
Prem0 -
okay, not too difficult.....
Create a new table with an option field for your chosen colors and change the table property "DataPerCompany" to NO....
Create your primary key as "Company"
On whichever trigger you decide to usethe code would look something like this....
CompanyColors.Get(COMPANYNAME); //Defined as global to the newly created table
if CompanyColours.Color=beige then
Currform.Beige.Visible(True);
if CompanyColours.Color=Green then
Currform.Green.Visible(True);
if CompanyColours.Color=Yellow then
Currform.Yellow.Visible(True);
EasyRemember: Keep it simple0 -
don't even need to change the datapercompany, just store it in the company information0
-
and you could include a check when validating selected color on company information, if some other company has already choosen that color.
(unless you want to alllow that some companies has the same color)®obi
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯0 -
Hi,
Can anyone tell me how to change the Navigation Panel color on 4.0? Or is there a way to have a different color wallpaper/scheme per company?
Thanks,
Trin0 -
You can't do much with the 4.0 Navigation Panel. It sucks.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions