AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX: База знаний и проекты
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 22.06.2014, 01:19   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Forms opening up with focus in background?
Источник: http://blogs.msdn.com/b/axsupport/ar...ackground.aspx
==============

If you work with an installation where forms in MS Dynamics AX are opened in the background then the following code fix might help out here:

“Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability or fitness for a particular purpose. This mail message assumes that you are familiar with the programming language that is being demonstrated and the tools that are used to create and debug procedures.”

Add a new static, client-side method to Classes\Application, as below:

client static void disableWindowGhosting()

{

DLL DLL;

DLLFunction DLLFunction;

container con = WinAPI::getVersion();

;

if (conpeek(con, 1) == 6) //Vista and Win7/Win2008R2 only

{

//this will disable window ghosting for this process only, for its lifespan only

DLL = new DLL('USER32');

DLLFunction = new DLLFunction(DLL,'DisableProcessWindowsGhosting');

DLLFunction.call();

}

}

Add a call to this from Application.startupPost(), like this:



if (hasGUI())

{

Application::DisableWindowGhosting();

}






Источник: http://blogs.msdn.com/b/axsupport/ar...ackground.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: SEPA affected objects Blog bot DAX Blogs 0 29.11.2013 13:11
emeadaxsupport: Forms not opening. Blog bot DAX Blogs 0 21.08.2013 10:11
emeadaxsupport: Changing the Background Color on AX Forms in AX 2012 Blog bot DAX Blogs 0 13.10.2012 00:11
axperf: Dynamics AX 2012: Forms on opening hide behind in the back Blog bot DAX Blogs 0 10.02.2012 05:16
emeadaxsupport: Forms with a high number of records take a significant time to show Blog bot DAX Blogs 4 12.09.2010 21:10
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 15:09.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.