Exemple #1
0
        public void     SetControlProperties(Control control)
        {
            if (control == null)
            {
                return;
            }
            for (int iprop = 0; iprop < properties.Count; iprop++)
            {
                SkinElementPropertyInfo propInfo = (SkinElementPropertyInfo)properties[iprop];
                if (propInfo == null)
                {
                    continue;
                }
                string  propName    = propInfo.name;
                Control propControl = control;

                int idx = -1;
                if ((idx = propInfo.name.LastIndexOf(".")) != -1)
                {
                    propControl = ResizableSkinController.GetNamedControl(control, propName.Substring(0, idx));
                    propName    = propName.Substring(idx + 1, propName.Length - idx - 1);
                }
                //
                if (propControl != null)
                {
                    SetProperty(propControl, propName, propInfo.value);
                }
            }
        }
Exemple #2
0
 public SkinPanel()
 {
     skinController = new ResizableSkinController(this);
     SetStyle(ControlStyles.UserPaint, true);
     SetStyle(ControlStyles.DoubleBuffer, true);
     SetStyle(ControlStyles.AllPaintingInWmPaint, true);
 }
Exemple #3
0
 public seRadioButton()
 {
     // This call is required by the Windows.Forms Form Designer.
     InitializeComponent();
     skinController = new ResizableSkinController(this);
     UpdateSkin();
     // TODO: Add any initialization after the InitializeComponent call
 }
Exemple #4
0
 public SkinEdit()
 {
     // This call is required by the Windows.Forms Form Designer.
     InitializeComponent();
     // TODO: Add any initialization after the InitializeComponent call
     CheckLayout();
     //
     skinController = new ResizableSkinController(this);
     UpdateSkin();
 }
Exemple #5
0
        //bool	NeedValidationAfterKeyPress=false;

        public SkinNumeric()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            // TODO: Add any initialization after the InitializeComponent call
            skinController = new ResizableSkinController(this);
            UpdateSkin();

            CheckLayout();

            this.Leave += new EventHandler(SkinNumeric_Leave);
        }
Exemple #6
0
        public BaseDialog()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            skinController = new ResizableSkinController(this);
            SkinFile       = SkinSettings.SkinDirectory + SkinSettings.BaseFormSkinFilename;
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            Type     type      = this.GetType();
            Assembly assembly  = Assembly.GetAssembly(type);
            string   iconsPath = "FlashGenie.res.";
            Stream   stream    = null;

#if     QVIZ_VERSION
            stream = assembly.GetManifestResourceStream(iconsPath + "QuickViz.ico");
#else
            stream = assembly.GetManifestResourceStream(iconsPath + "FlashGenie.ico");
#endif
            if (stream != null)
            {
                this.Icon = new Icon(stream);
            }

            TitlePanel.Paint += new PaintEventHandler(TitlePanel_Paint);
            //
            mtitleBarHeight  = TitlePanel.Height;
            mstatusBarHeight = 27;            //StatusPanel.Height;
            //
            StatusBar           = true;
            Resizable           = true;
            StatusPanel.Visible = StatusBar;
            btnMaximize.Visible = MaximizeBox;
            btnNormal.Visible   = false;
            btnMinimize.Visible = MinimizeBox;
            OnResizableChanged();
            CheckLayout();

            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.DoubleBuffer, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);

            CorrectWindowStyles();
        }
Exemple #7
0
 public SkinnedResizableComboBox()
 {
     skinController       = new ResizableSkinController(this);
     this.VisibleChanged += new EventHandler(SkinnedResizableComboBox_VisibleChanged);
 }