27.01.2008, 19:13 | #1 |
Участник
|
Khue Trinh: CODE TO CHANGE FORM BACKGROUND COLOUR FOR EACH COMPANY
Источник: http://khue.spaces.live.com/Blog/cns...A0C2!404.entry
============== I have read somewhere people asked for code to change background colour of form for each company. This is to make it easier for user to identify current company they are working on. Here is an example: - Create a new field in table CompanyInfo, called BackgroudColor, extended from GanttColorId EDT. - To display this field in the CompanyInfo form, I add it to the field group "Name" - Override the Run method of class SysSetupFormRun as: public void run() { ; super(); this.design().colorScheme(FormColorScheme::RGB); this.design().backgroundColor(CompanyInfo::find().BackgroundColor); } Now it is ready. Источник: http://khue.spaces.live.com/Blog/cns...A0C2!404.entry
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
28.01.2008, 10:39 | #2 |
Участник
|
Changing Form color based on the current Company (апрель 2006) |
|
|
|