Ejemplo n.º 1
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;
            }
        }