Print Page | Close Window

Progressbar moves when MDIForm resized

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to .NET WinForms Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=17853
Printed Date: 20 April 2024 at 3:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Progressbar moves when MDIForm resized
Posted By: Celeste
Subject: Progressbar moves when MDIForm resized
Date Posted: 09 February 2011 at 10:19pm
Hello All,

I am using CodeJock Xtreme SuitePro ActiveX 2007 Vol 2 (11.2.0) and I am trying to add a ProgressBar in the StatusBar.. but the progressbar also moves when the MDIForm resized..
what I missed. Smile

axCommandBars.ToolTipContext.Style = XtremeCommandBars.XTPToolTipStyle.xtpToolTipBalloon;
                axCommandBars.Icons.AddIcons(axImageManager.Icons);

                StatusBar.ToolTipContext.Style = XtremeCommandBars.XTPToolTipStyle.xtpToolTipBalloon;
               
                XtremeCommandBars.StatusBarPane Pane;

                Pane = StatusBar.AddPane(0);
                Pane.Style = XtremeCommandBars.XTPStatusPaneStyle.SBPS_STRETCH | XtremeCommandBars.XTPStatusPaneStyle.SBPS_NOBORDERS;
    Pane.Text = "Ready";
    Pane.Width = 0; //Auto Size

                Pane = StatusBar.AddPane(ID.ID_MYSQL_INDICATOR);
                Pane.IconIndex = MYSQLDB.MYSQL_STATUS_STOP;
                Pane.Alignment= XtremeCommandBars.XTPTextAlignment.xtpAlignmentCenter;
                Pane.Text = "";
                Pane.ToolTip = "Database stopped";

                Pane = StatusBar.AddPane(ID.ID_TAPI_INDICATOR);
                Pane.IconIndex = TAPI.TAPI_STATUS_STOP;
                Pane.Alignment = XtremeCommandBars.XTPTextAlignment.xtpAlignmentCenter;
                Pane.Text = "";
                Pane.ToolTip = "TAPI stopped";

                StatusBar.AddPane(ID.ID_INDICATOR_CAPS);
                StatusBar.AddPane(ID.ID_INDICATOR_NUM);
                StatusBar.AddPane(ID.ID_INDICATOR_SCRL);
                StatusBar.IdleText = "Ready";

                Pane = StatusBar.AddPane(ID.ID_INDICATOR_PROGRESS);
                Pane.Handle = progressBar.Handle.ToInt32();
                Pane.Alignment = XtremeCommandBars.XTPTextAlignment.xtpAlignmentCenter;
                progressBar.Value = 50;
                Pane.Width = 100;
                Pane.Visible = true;

                RibbonBar().EnableFrameTheme();
                axCommandBars.Options.KeyboardCuesShow = XtremeCommandBars.XTPKeyboardCuesShow.xtpKeyboardCuesShowWindowsDefault;
               
                axCommandBars.KeyBindings.Add(0, ID.VK_F5 , ID.ID_REFRESH);
                axCommandBars.ShowTabWorkspace(true);
                axCommandBars.EnableCustomization(true);





Replies:
Posted By: Celeste
Date Posted: 14 February 2011 at 2:37am
could any body please help???



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net