コード例 #1
0
        private void indeterminateBtn_Click(object sender, EventArgs e)
        {
            NLightUIItem[] checkedItems = nTreeViewEx1.Nodes.GetItemsByCheckState(ItemCheckState.Indeterminate, true);

            NForm    form = new NForm();
            NListBox lb   = new NListBox();

            lb.Dock   = DockStyle.Fill;
            lb.Parent = form;
            lb.Items.AddRange(checkedItems);
            form.StartPosition = FormStartPosition.CenterParent;
            form.ShowDialog(nTreeViewEx1);

            form.Dispose();
        }
コード例 #2
0
        private void m_ShowFormButton_Click(object sender, System.EventArgs e)
        {
            NForm f = new NForm();

            f.FrameAppearance = NUIManager.GetPredefinedFrame(PredefinedFrame.Simple);
            f.StartPosition   = FormStartPosition.CenterParent;
            f.Text            = "Custom Caption Buttons";
            f.Palette.Copy(NUIManager.Palette);
            f.CaptionButtonClicked += new NUIItemEventHandler(f_CaptionButtonClicked);

            foreach (NFrameCaptionButton button in m_arrButtons)
            {
                f.CustomButtons.Add(button);
            }

            f.ShowDialog();
        }
コード例 #3
0
        private void m_ShowFormButton_Click(object sender, System.EventArgs e)
        {
            NFrameAppearance appearance;

            if (m_PredefinedRadio.Checked)
            {
                appearance = NUIManager.GetPredefinedFrame((PredefinedFrame)m_PredefinedFrameCombo.SelectedItem);
            }
            else
            {
                appearance = m_CustomAppearance;
            }

            NForm form = new NForm();

            form.UseGlassIfEnabled = CommonTriState.False;
            form.EnableSkinning    = false;
            form.Palette.Copy(NUIManager.Palette);
            form.Text             = "Custom Form Example";
            form.FrameAppearance  = appearance;
            form.ShowCaptionImage = true;
            form.StartPosition    = FormStartPosition.CenterParent;
            form.ShowDialog();
        }