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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 22.11.2010, 14:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
xplusplus: How to: prompt a dialog box or a modal window
Источник: http://xplusplus.info/index.php/how-...-modal-window/
==============

In this post I will review the different types of dialog boxes that can be used within the AX system.

There are many scenarios where you want to prompt a message or dialog box to the user. That could be achieved within the box class in the AOT.

Here are some example of the common ones -

1. Inofrmation



Box::info(str _text,str _title);2. Warning



Box::warning(str _text,str _title);3. Critical stop



Box::stop(str _text,str _title);4. "Do not tell me again" check box



Box::infoOnce(str _heading,str _information,str owner);5. OK / Cancel dialog box





DialogButton diagBut;;diagBut = Box::yesNo(str _text,DialogButton _defaultButton,str _title);6. Yes to all dialog box





DialogButton diagBut;;diagBut = Box::yesAllNoAllCancel(str _text,DialogButton _defaultButton,str _title);

Summery

In the last two examples, the box method will return the name of the selected option button.
Then, you can use the variable diagBut to proceed with your operations:

if (diagBut == dialogbutton::Ok) { //do something }

Источник: http://xplusplus.info/index.php/how-...-modal-window/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
xplusplus: How to read data from text (.txt) file with AsciiIo Blog bot DAX Blogs 0 22.11.2010 01:11
emeadaxsupport: How to run a form modal Blog bot DAX Blogs 0 14.12.2009 14:05
Dynamics AX FAQ: How to override the event methods on dialog controls? Blog bot DAX Blogs 0 23.04.2008 04:16
DynamicsTech: How to modify the behavior of dialog boxes to enable forms to appear in full-screen mode in Microsoft Dynamics AX Blog bot DAX Blogs 0 13.04.2007 12:10
window: число -> картинку, how? somebody DAX: Программирование 9 24.03.2004 12:34
Опции темы Поиск в этой теме
Поиск в этой теме:

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

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

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

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