public override void InitDialogSettings()
        {
            DlgMgr.AssignButtonCaption(buttonId, ButtonCaption);
            DlgMgr.AssignButtonEnabled(buttonId, !ButtonDisabled);
            DlgMgr.AssignButtonToolTip(buttonId, ButtonToolTip);
            DlgMgr.AssignButtonFont(buttonId, ButtonFont);

            if (!IsUpdated)
            {
                srcCS = ""; srcVB = "";
                return;
            }

            srcCS = CRLF + "DlgMgr.AssignButtonCaption(XMessageBoxButton." + buttonId.ToString() + ", \"" + ButtonCaption + "\");" + CRLF +
                    "DlgMgr.AssignButtonEnabled(XMessageBoxButton." + buttonId.ToString() + ", " + (!ButtonDisabled).ToString() + ");" + CRLF +
                    "DlgMgr.AssignButtonToolTip(XMessageBoxButton." + buttonId.ToString() + ", \"" + ButtonToolTip + "\");" + CRLF +
                    "DlgMgr.AssignButtonFont(XMessageBoxButton." + buttonId.ToString() + ", " + CSNxt +
                    FontToStr(ButtonFont) + ");" + CRLF;

            srcVB = CRLF + "DlgMgr.AssignButtonCaption(XMessageBoxButton." + buttonId.ToString() + ", \"" + ButtonCaption + "\")" + CRLF +
                    "DlgMgr.AssignButtonEnabled(XMessageBoxButton." + buttonId.ToString() + ", " + (!ButtonDisabled).ToString() + ")" + CRLF +
                    "DlgMgr.AssignButtonToolTip(XMessageBoxButton." + buttonId.ToString() + ", \"" + ButtonToolTip + "\")" + CRLF +
                    "DlgMgr.AssignButtonFont(XMessageBoxButton." + buttonId.ToString() + ", " + VBNxt +
                    FontToStr(ButtonFont) + ")" + CRLF;
        }
Exemple #2
0
        public override void InitDialogSettings()
        {
            srcCS = "//Web Link Control settings" + CRLF;
            srcVB = "'Web Link Control settings" + CRLF;

            if ((!ControlEnabled) || (SelectedHref.Length == 0))
            {
                DlgMgr.EnableHrefCtrl("");
                srcCS += "DlgMgr.EnableHrefCtrl(\"\");" + CRLF;
                srcVB += "DlgMgr.EnableHrefCtrl(\"\")" + CRLF;
            }
            else
            {
                DlgMgr.EnableHrefCtrl(SelectedHref, SelectedAlias, SelectedColor);

                srcCS += "DlgMgr.EnableHrefCtrl(" + CSNxt +
                         "\"" + SelectedHref + "\"," + CSNxt +
                         "\"" + SelectedAlias + "\"," + CSNxt +
                         ColorToStr(SelectedColor) + ");" + CRLF;

                srcVB += "DlgMgr.EnableHrefCtrl(" + VBNxt +
                         "\"" + SelectedHref + "\"," + VBNxt +
                         "\"" + SelectedAlias + "\"," + VBNxt +
                         ColorToStr(SelectedColor) + ")" + CRLF;
            }
        }
Exemple #3
0
        public override void InitDialogSettings()
        {
            srcCS = "//Message settings" + CRLF;
            srcVB = "'Message settings" + CRLF;

            DlgMgr.AssignMessageFont(DlgMessageFont);
            DlgMgr.MessageFontColor    = DlgMessageForeColor;
            DlgMgr.TimeoutMilliseconds = (int)DlgTimeout;

            srcCS += "DlgMgr.AssignMessageFont(" + FontToStr(DlgMessageFont) + ");" + CRLF +
                     "DlgMgr.MessageFontColor = " + ColorToStr(DlgMessageForeColor) + ";" + CRLF +
                     "DlgMgr.TimeoutMilliseconds = " + ((int)DlgTimeout).ToString() + ";" + CRLF;

            srcVB += "DlgMgr.AssignMessageFont(" + FontToStr(DlgMessageFont) + ")" + CRLF +
                     "DlgMgr.MessageFontColor = " + ColorToStr(DlgMessageForeColor) + CRLF +
                     "DlgMgr.TimeoutMilliseconds = " + ((int)DlgTimeout).ToString() + CRLF;

            if (checkMessageWebLink.Checked)
            {
                DlgMgr.AddWebLinkToMessage(DlgMessageWebLink);
                srcCS += "DlgMgr.AddWebLinkToMessage(\"" + DlgMessageWebLink + "\");" + CRLF;
                srcVB += "DlgMgr.AddWebLinkToMessage(\"" + DlgMessageWebLink + "\")" + CRLF;
            }
            else
            {
                DlgMgr.AddWebLinkToMessage("");
                srcCS += "DlgMgr.AddWebLinkToMessage(\"\");" + CRLF;
                srcVB += "DlgMgr.AddWebLinkToMessage(\"\")" + CRLF;
            }
        }
        public override void InitDialogSettings()
        {
            srcCS = "//Text Input Control settings" + CRLF;
            srcVB = "'Text Input Control settings" + CRLF;

            if ((!checkDisplayControl.Checked) || (ControlCaption.Length == 0))
            {
                DlgMgr.EnableTextInputCtrl();
                srcCS += "DlgMgr.EnableTextInputCtrl();" + CRLF;
                srcVB += "DlgMgr.EnableTextInputCtrl()" + CRLF;
            }
            else
            {
                DlgMgr.EnableTextInputCtrl(ControlCaption, ControlWidth, ControlHeight, ControlStyle);

                srcCS += "DlgMgr.EnableTextInputCtrl(" + CSNxt +
                         "\"" + ControlCaption + "\", " + CSNxt +
                         ControlWidth.ToString() + ", " + ControlHeight.ToString() + ", " + CSNxt +
                         ((int)ControlStyle).ToString() + ");" + CRLF;

                srcVB += "DlgMgr.EnableTextInputCtrl(" + VBNxt +
                         "\"" + ControlCaption + "\"," + VBNxt +
                         ControlWidth.ToString() + ", " + ControlHeight.ToString() + "," + VBNxt +
                         ((int)ControlStyle).ToString() + ")" + CRLF;
            }
        }
        public override void InitDialogSettings()
        {
            srcCS = "//Dialog Button settings" + CRLF;
            srcVB = "'Dialog Button settings" + CRLF;

            DlgMgr.ResetDlgButtons();
            srcCS += "DlgMgr.ResetDlgButtons();" + CRLF;
            srcVB += "DlgMgr.ResetDlgButtons()" + CRLF;

            dbsAbort.InitDialogSettings();
            dbsAux01.InitDialogSettings();
            dbsAux02.InitDialogSettings();
            dbsAux03.InitDialogSettings();
            dbsButton07.InitDialogSettings();
            dbsCancel.InitDialogSettings();
            dbsContinue.InitDialogSettings();
            dbsHelp.InitDialogSettings();
            dbsIgnore.InitDialogSettings();
            dbsNo.InitDialogSettings();
            dbsOk.InitDialogSettings();
            dbsRetry.InitDialogSettings();
            dbsTryAgain.InitDialogSettings();
            dbsYes.InitDialogSettings();

            srcCS += dbsAbort.SourceCodeCS +
                     dbsAux01.SourceCodeCS +
                     dbsAux02.SourceCodeCS +
                     dbsAux03.SourceCodeCS +
                     dbsButton07.SourceCodeCS +
                     dbsCancel.SourceCodeCS +
                     dbsContinue.SourceCodeCS +
                     dbsHelp.SourceCodeCS +
                     dbsIgnore.SourceCodeCS +
                     dbsNo.SourceCodeCS +
                     dbsOk.SourceCodeCS +
                     dbsRetry.SourceCodeCS +
                     dbsTryAgain.SourceCodeCS +
                     dbsYes.SourceCodeCS;

            srcVB += dbsAbort.SourceCodeVB +
                     dbsAux01.SourceCodeVB +
                     dbsAux02.SourceCodeVB +
                     dbsAux03.SourceCodeVB +
                     dbsButton07.SourceCodeVB +
                     dbsCancel.SourceCodeVB +
                     dbsContinue.SourceCodeVB +
                     dbsHelp.SourceCodeVB +
                     dbsIgnore.SourceCodeVB +
                     dbsNo.SourceCodeVB +
                     dbsOk.SourceCodeVB +
                     dbsRetry.SourceCodeVB +
                     dbsTryAgain.SourceCodeVB +
                     dbsYes.SourceCodeVB;
        }
Exemple #6
0
        public override void InitDialogSettings()
        {
            srcCS = "//Dialog Dimension settings" + CRLF;
            srcVB = "'Dialog Dimension settings" + CRLF;

            if (!ExtendedFeaturesEnabled)
            {
                DlgMgr.AssignDlgMaxSize();
                srcCS += "DlgMgr.AssignDlgMaxSize();" + CRLF;
                srcVB += "DlgMgr.AssignDlgMaxSize()" + CRLF;
            }
            else
            {
                DlgMgr.AssignDlgMaxSize((int)DialogMaxWidth, (int)DialogMaxHeight);
                srcCS += "DlgMgr.AssignDlgMaxSize(" + DialogMaxWidth.ToString() +
                         ", " + DialogMaxHeight.ToString() + ");" + CRLF;
                srcVB += "DlgMgr.AssignDlgMaxSize(" + DialogMaxWidth.ToString() +
                         ", " + DialogMaxHeight.ToString() + ")" + CRLF;
            }
        }
Exemple #7
0
        public override void InitDialogSettings()
        {
            srcCS = "//CheckBox Control settings" + CRLF;
            srcVB = "'CheckBox Control settings" + CRLF;

            if ((!ControlEnabled) || (ControlCaption.Length == 0))
            {
                DlgMgr.EnableCheckBoxCtrl();
                srcCS += "DlgMgr.EnableCheckBoxCtrl();" + CRLF;
                srcVB += "DlgMgr.EnableCheckBoxCtrl()" + CRLF;
            }
            else
            {
                DlgMgr.EnableCheckBoxCtrl(ControlCaption, ControlCheckedStatus);
                srcCS += "DlgMgr.EnableCheckBoxCtrl(\"" + ControlCaption + "\"," + CSNxt +
                         ControlCheckedStatus.ToString() + ");" + CRLF;
                srcVB += "DlgMgr.EnableCheckBoxCtrl(\"" + ControlCaption + "\"," + VBNxt +
                         ControlCheckedStatus.ToString() + ")" + CRLF;
            }
        }
Exemple #8
0
        public override void InitDialogSettings()
        {
            srcCS = "//Dialog Position settings" + CRLF;
            srcVB = "'Dialog Position settings" + CRLF;

            if (!ExtendedFeaturesEnabled)
            {
                DlgMgr.AssignDlgPosition();
                srcCS += "DlgMgr.AssignDlgPosition();" + CRLF;
                srcVB += "DlgMgr.AssignDlgPosition()" + CRLF;
                return;
            }

            if (PositionMode == 0)
            {
                //relative
                XMessageBoxHorizontalAlign ha = XMessageBoxHorizontalAlign.Centered;
                XMessageBoxVerticalAlign   va = XMessageBoxVerticalAlign.Centered;

                switch (comboDlgHorizAlign.SelectedIndex)
                {
                case 0:
                    ha = XMessageBoxHorizontalAlign.LeftAligned;
                    break;

                case 2:
                    ha = XMessageBoxHorizontalAlign.RightAligned;
                    break;

                default:
                    ha = XMessageBoxHorizontalAlign.Centered;
                    break;
                }

                switch (comboDlgVertAlign.SelectedIndex)
                {
                case 0:
                    va = XMessageBoxVerticalAlign.TopAligned;
                    break;

                case 2:
                    va = XMessageBoxVerticalAlign.BottomAligned;
                    break;

                default:
                    va = XMessageBoxVerticalAlign.Centered;
                    break;
                }

                DlgMgr.AssignDlgPosition(ha, va);
                srcCS += "//anchor" + CRLF +
                         "DlgMgr.AssignDlgPosition(XMessageBoxHorizontalAlign." + ha.ToString() + ", " + CSNxt +
                         "XMessageBoxVerticalAlign." + va.ToString() + ");" + CRLF;

                srcVB += "'anchor" + CRLF +
                         "DlgMgr.AssignDlgPosition(XMessageBoxHorizontalAlign." + ha.ToString() + "," + VBNxt +
                         "XMessageBoxVerticalAlign." + va.ToString() + ")" + CRLF;
            }
            else
            {
                //absolute
                DlgMgr.AssignDlgPosition((int)PositionLeft, (int)PositionTop,
                                         XMessageBoxPositionMode.AbsolutePosition);

                srcCS += "//absolute" + CRLF +
                         "DlgMgr.AssignDlgPosition(" + PositionLeft.ToString() + ", " +
                         PositionTop.ToString() + ", " + CSNxt +
                         "XMessageBoxPositionMode." + XMessageBoxPositionMode.AbsolutePosition.ToString() + ");" + CRLF;

                srcVB += "'absolute" + CRLF +
                         "DlgMgr.AssignDlgPosition(" + PositionLeft.ToString() + ", " +
                         PositionTop.ToString() + ", " + VBNxt +
                         "XMessageBoxPositionMode." + XMessageBoxPositionMode.AbsolutePosition.ToString() + ")" + CRLF;
            }
        }
Exemple #9
0
        public override void InitDialogSettings()
        {
            srcCS = "//Dialog Background settings" + CRLF;
            srcVB = "'Dialog Background settings" + CRLF;

            DlgMgr.UdfBackcolorsEnabled = checkUdfBackcolorsEnabled.Checked;
            srcCS += "DlgMgr.UdfBackcolorsEnabled = " + DlgMgr.UdfBackcolorsEnabled.ToString().ToLower() + ";" + CRLF;
            srcVB += "DlgMgr.UdfBackcolorsEnabled = " + DlgMgr.UdfBackcolorsEnabled.ToString() + CRLF;

            if (!DlgMgr.UdfBackcolorsEnabled)
            {
                return;
            }

            //main
            if (colorSelect1.UseSystemDefault)
            {
                DlgMgr.ResetBackColor(XMessageBoxBackground.DlgWindow);
                srcCS += "DlgMgr.ResetBackColor(XMessageBoxBackground." +
                         XMessageBoxBackground.DlgWindow.ToString() + ");" + CRLF;
                srcVB += "DlgMgr.ResetBackColor(XMessageBoxBackground." +
                         XMessageBoxBackground.DlgWindow.ToString() + ")" + CRLF;
            }
            else if (colorSelect1.BackgroundMode == 0) //solid color or hatch
            {
                if (SelectedBrushMain == XMessageBoxHatchStyle.HatchStyleNone)
                {
                    DlgMgr.LoadBackColorFromSolidColor(XMessageBoxBackground.DlgWindow, BackgroundColorMain);

                    srcCS += "DlgMgr.LoadBackColorFromSolidColor(XMessageBoxBackground." +
                             XMessageBoxBackground.DlgWindow.ToString() + "," + CSNxt +
                             ColorToStr(BackgroundColorMain) + ");" + CRLF;

                    srcVB += "DlgMgr.LoadBackColorFromSolidColor(XMessageBoxBackground." +
                             XMessageBoxBackground.DlgWindow.ToString() + "," + VBNxt +
                             ColorToStr(BackgroundColorMain) + ")" + CRLF;
                }
                else
                {
                    DlgMgr.LoadBackcolorFromHatchBrush(XMessageBoxBackground.DlgWindow,
                                                       SelectedBrushMain, BackgroundColorMain);

                    srcCS += "DlgMgr.LoadBackcolorFromHatchBrush(XMessageBoxBackground." +
                             XMessageBoxBackground.DlgWindow.ToString() + "," + CSNxt +
                             "XMessageBoxHatchStyle." + SelectedBrushMain.ToString() + "," + CSNxt +
                             ColorToStr(BackgroundColorMain) + ");" + CRLF;

                    srcVB += "DlgMgr.LoadBackcolorFromHatchBrush(XMessageBoxBackground." +
                             XMessageBoxBackground.DlgWindow.ToString() + "," + VBNxt +
                             "XMessageBoxHatchStyle." + SelectedBrushMain.ToString() + "," + VBNxt +
                             ColorToStr(BackgroundColorMain) + ")" + CRLF;
                }
            }
            else  //bitmap file
            {
                DlgMgr.LoadBackcolorFromBitmapFile(XMessageBoxBackground.DlgWindow, SelectedBitmapFileMain);

                srcCS += "DlgMgr.LoadBackcolorFromBitmapFile(XMessageBoxBackground." +
                         XMessageBoxBackground.DlgWindow.ToString() + "," + CSNxt +
                         "\"" + FilenameToStr(SelectedBitmapFileMain) + "\");" + CRLF;

                srcVB += "DlgMgr.LoadBackcolorFromBitmapFile(XMessageBoxBackground." +
                         XMessageBoxBackground.DlgWindow.ToString() + "," + VBNxt +
                         "\"" + SelectedBitmapFileMain + "\")" + CRLF;
            }

            //toolbar
            if (colorSelect2.UseSystemDefault)
            {
                DlgMgr.ResetBackColor(XMessageBoxBackground.ToolBarWindow);

                srcCS += "DlgMgr.ResetBackColor(XMessageBoxBackground." +
                         XMessageBoxBackground.ToolBarWindow.ToString() + ");" + CRLF;

                srcVB += "DlgMgr.ResetBackColor(XMessageBoxBackground." +
                         XMessageBoxBackground.ToolBarWindow.ToString() + ")" + CRLF;
            }
            else if (colorSelect2.BackgroundMode == 0) //solid color or hatch
            {
                if (SelectedBrushToolbar == XMessageBoxHatchStyle.HatchStyleNone)
                {
                    DlgMgr.LoadBackColorFromSolidColor(XMessageBoxBackground.ToolBarWindow,
                                                       BackgroundColorToolbar);

                    srcCS += "DlgMgr.LoadBackColorFromSolidColor(XMessageBoxBackground." +
                             XMessageBoxBackground.ToolBarWindow.ToString() + "," + CSNxt +
                             ColorToStr(BackgroundColorToolbar) + ");" + CRLF;

                    srcVB += "DlgMgr.LoadBackColorFromSolidColor(XMessageBoxBackground." +
                             XMessageBoxBackground.ToolBarWindow.ToString() + "," + VBNxt +
                             ColorToStr(BackgroundColorToolbar) + ")" + CRLF;
                }
                else
                {
                    DlgMgr.LoadBackcolorFromHatchBrush(XMessageBoxBackground.ToolBarWindow,
                                                       SelectedBrushToolbar, BackgroundColorToolbar);

                    srcCS += "DlgMgr.LoadBackcolorFromHatchBrush(XMessageBoxBackground." +
                             XMessageBoxBackground.ToolBarWindow.ToString() + "," + CSNxt +
                             "XMessageBoxHatchStyle." + SelectedBrushToolbar.ToString() + "," + CSNxt +
                             ColorToStr(BackgroundColorToolbar) + ");" + CRLF;

                    srcVB += "DlgMgr.LoadBackcolorFromHatchBrush(XMessageBoxBackground." +
                             XMessageBoxBackground.ToolBarWindow.ToString() + "," + VBNxt +
                             "XMessageBoxHatchStyle." + SelectedBrushToolbar.ToString() + "," + VBNxt +
                             ColorToStr(BackgroundColorToolbar) + ")" + CRLF;
                }
            }
            else  //bitmap file
            {
                DlgMgr.LoadBackcolorFromBitmapFile(XMessageBoxBackground.ToolBarWindow, SelectedBitmapFileToolbar);

                srcCS += "DlgMgr.LoadBackcolorFromBitmapFile(XMessageBoxBackground." +
                         XMessageBoxBackground.ToolBarWindow.ToString() + "," + CSNxt +
                         "\"" + FilenameToStr(SelectedBitmapFileToolbar) + "\");" + CRLF;

                srcVB += "DlgMgr.LoadBackcolorFromBitmapFile(XMessageBoxBackground." +
                         XMessageBoxBackground.ToolBarWindow.ToString() + "," + VBNxt +
                         "\"" + SelectedBitmapFileToolbar + "\")" + CRLF;
            }
        }
Exemple #10
0
        public override void InitDialogSettings()
        {
            srcCS = "//Dialog Icon settings" + CRLF;
            srcVB = "'Dialog Icon settings" + CRLF;

            DlgMgr.UdfIconsEnabled = ExtendedFeaturesEnabled;
            srcCS += "DlgMgr.UdfIconsEnabled = " + ExtendedFeaturesEnabled.ToString().ToLower() + ";" + CRLF;
            srcVB += "DlgMgr.UdfIconsEnabled = " + ExtendedFeaturesEnabled.ToString() + CRLF;

            if (ExtendedFeaturesEnabled)
            {
                String sourceFileType = Path.GetExtension(IconFileSelected).ToLower();

                if (sourceFileType == ".ico")
                {
                    DlgMgr.LoadIconFromIconFile(XMessageBoxIcon.UserIcon, IconFileSelected);

                    srcCS += "DlgMgr.LoadIconFromIconFile(XMessageBoxIcon.UserIcon, " + CSNxt +
                             "\"" + FilenameToStr(IconFileSelected) + "\");" + CRLF;

                    srcVB += "DlgMgr.LoadIconFromIconFile(XMessageBoxIcon.UserIcon," + VBNxt +
                             "\"" + IconFileSelected + "\")" + CRLF;
                }
                else
                if ((sourceFileType == ".exe") || (sourceFileType == ".dll"))
                {
                    DlgMgr.LoadIconFromResourceFile(XMessageBoxIcon.UserIcon, IconFileSelected, (int)ResourceIndexSelected);

                    srcCS += "DlgMgr.LoadIconFromResourceFile(XMessageBoxIcon.UserIcon, " + CSNxt +
                             "\"" + FilenameToStr(IconFileSelected) + "\", " + ResourceIndexSelected.ToString() + ");" + CRLF;

                    srcVB += "DlgMgr.LoadIconFromResourceFile(XMessageBoxIcon.UserIcon," + VBNxt +
                             "\"" + IconFileSelected + "\", " + ResourceIndexSelected.ToString() + ")" + CRLF;
                }
                else
                {
                    DlgMgr.LoadIconFromFileType(XMessageBoxIcon.UserIcon, IconFileSelected);
                    srcCS += "DlgMgr.LoadIconFromFileType(XMessageBoxIcon.UserIcon, " + CSNxt +
                             "\"" + FilenameToStr(IconFileSelected) + "\");" + CRLF;

                    srcVB += "DlgMgr.LoadIconFromFileType(XMessageBoxIcon.UserIcon," + VBNxt +
                             "\"" + IconFileSelected + "\")" + CRLF;
                }
            }

            if (!IconWebLinkEnabled)
            {
                DlgMgr.AddWebLinkToIcon("");
                srcCS += "DlgMgr.AddWebLinkToIcon(\"\");" + CRLF;
                srcVB += "DlgMgr.AddWebLinkToIcon(\"\")" + CRLF;
            }
            else
            {
                DlgMgr.AddWebLinkToIcon(IconWebLink);
                srcCS += "DlgMgr.AddWebLinkToIcon(" + CSNxt +
                         "\"" + IconWebLink + "\");\r" + CRLF;

                srcVB += "DlgMgr.AddWebLinkToIcon(" + VBNxt +
                         "\"" + IconWebLink + "\")\r" + CRLF;
            }
        }
Exemple #11
0
        public static void ExtendeMessagesShow()
        {
            //Dialog Button settings
            DlgMgr.ResetDlgButtons();

            DlgMgr.AssignButtonCaption(XMessageBoxButton.ButtonNo, "Non");
            DlgMgr.AssignButtonEnabled(XMessageBoxButton.ButtonNo, True);
            DlgMgr.AssignButtonToolTip(XMessageBoxButton.ButtonNo, "");
            DlgMgr.AssignButtonFont(XMessageBoxButton.ButtonNo,
                                    "Microsoft Sans Serif", 8, 0, 0, 0, 0, 0);

            DlgMgr.AssignButtonCaption(XMessageBoxButton.ButtonYes, "Oui");
            DlgMgr.AssignButtonEnabled(XMessageBoxButton.ButtonYes, True);
            DlgMgr.AssignButtonToolTip(XMessageBoxButton.ButtonYes, "");
            DlgMgr.AssignButtonFont(XMessageBoxButton.ButtonYes,
                                    "Microsoft Sans Serif", 8, 0, 0, 0, 0, 0);

            //Dialog Dimension settings
            DlgMgr.AssignDlgMaxSize(600, 0);

            //Dialog Position settings
            //absolute
            DlgMgr.AssignDlgPosition(100, 200,
                                     XMessageBoxPositionMode.AbsolutePosition);

            //Dialog Background settings
            DlgMgr.UdfBackcolorsEnabled = true;
            DlgMgr.ResetBackColor(XMessageBoxBackground.DlgWindow);
            DlgMgr.LoadBackColorFromSolidColor(XMessageBoxBackground.ToolBarWindow,
                                               Color.FromArgb(-9404272));

            //Dialog Icon settings
            DlgMgr.UdfIconsEnabled = true;
            DlgMgr.LoadIconFromFileType(XMessageBoxIcon.UserIcon,
                                        "*.cs");
            DlgMgr.AddWebLinkToIcon("");

            //Text Input Control settings
            DlgMgr.EnableTextInputCtrl();

            //Web Link Control settings
            //DlgMgr.EnableHrefCtrl(
            //    "http://www.news2news.com/vfp/?solution=5",
            //    "Extended MessageBox .NET web page",
            //    Color.FromArgb(-16776961));

            //CheckBox Control settings
            DlgMgr.EnableCheckBoxCtrl();

            //Message settings
            DlgMgr.AssignMessageFont("Segoe UI", 14, 0, 0, 0, 0, 0);
            DlgMgr.MessageFontColor    = Color.FromArgb(-13676721);
            DlgMgr.TimeoutMilliseconds = 10000;
            DlgMgr.AddWebLinkToMessage("");


            //Dialog settings

            //Turning dialog extended features on
            DlgMgr.DlgMonitorEnabled = true;

            MessageBox.Show("Alert",
                            "Hola mundo",
                            MessageBoxButtons.OKCancel,
                            MessageBoxIcon.Information);

            //DlgMgr members populated upon dialog closing:

            //Returns True when the dialog gets closed on timeout;
            //otherwise returns False
            //DlgMgr.ClosedOnTimeout

            //Returns aux.button ID that closed the dialog;
            //otherwise returns zero
            //DlgMgr.AuxButtonPressed

            //Returns CheckBox control Checked state;
            //returns False when the control not shown
            //DlgMgr.CheckBoxState

            //Returns text entered in the Text Input control;
            //returns empty string when the control not shown
            //DlgMgr.TextInputValue
        }