Author: aolk
Date: 2005-04-05 11:02:48 -0400 (Tue, 05 Apr 2005)
New Revision: 42572

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
Log:
2005-04-05  Alexander Olk  <[EMAIL PROTECTED]>

        * FileDialog.cs:
          - Don't change PopupButtonState to Normal when the
            PopupButton gets pressed several times.
          - Renamed ButtonPanel to PopupButtonPanel



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-04-05 14:48:49 UTC (rev 42571)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-04-05 15:02:48 UTC (rev 42572)
@@ -1,3 +1,10 @@
+2005-04-05  Alexander Olk  <[EMAIL PROTECTED]>
+
+       * FileDialog.cs:
+         - Don't change PopupButtonState to Normal when the
+           PopupButton gets pressed several times.
+         - Renamed ButtonPanel to PopupButtonPanel
+
 2005-04-05  Jordi Mas i Hernandez <[EMAIL PROTECTED]>
 
        * ColorDialog.cs: Use cached objects instead of creating them

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs    
2005-04-05 14:48:49 UTC (rev 42571)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs    
2005-04-05 15:02:48 UTC (rev 42572)
@@ -472,7 +472,7 @@
                {
                        private Button cancelButton;
                        private ToolBarButton upToolBarButton;
-                       private ButtonPanel buttonPanel;
+                       private PopupButtonPanel popupButtonPanel;
                        private Button openSaveButton;
                        private Button helpButton;
                        private Label fileTypeLabel;
@@ -537,7 +537,7 @@
                                openSaveButton = new Button( );
                                fileDialog.form.AcceptButton = openSaveButton;
                                helpButton = new Button( );
-                               buttonPanel = new ButtonPanel( this );
+                               popupButtonPanel = new PopupButtonPanel( this );
                                upToolBarButton = new ToolBarButton( );
                                cancelButton = new Button( );
                                fileDialog.form.CancelButton = cancelButton;
@@ -593,9 +593,9 @@
                                smallButtonToolBar.TextAlign = 
ToolBarTextAlign.Right;
                                
                                // buttonPanel
-                               buttonPanel.Dock = DockStyle.None;
-                               buttonPanel.Location = new Point( 7, 37 );
-                               buttonPanel.TabIndex = 3;
+                               popupButtonPanel.Dock = DockStyle.None;
+                               popupButtonPanel.Location = new Point( 7, 37 );
+                               popupButtonPanel.TabIndex = 3;
                                
                                // mwfFileView
                                mwfFileView.Anchor = ( (AnchorStyles)( ( ( ( 
AnchorStyles.Top | AnchorStyles.Bottom ) | AnchorStyles.Left ) | 
AnchorStyles.Right ) ) );
@@ -730,7 +730,7 @@
                                Controls.Add( fileNameComboBox );
                                Controls.Add( dirComboBox );
                                Controls.Add( searchSaveLabel );
-                               Controls.Add( buttonPanel );
+                               Controls.Add( popupButtonPanel );
                                Controls.Add( checkBox );
                                
                                ResumeLayout( false );
@@ -1215,7 +1215,7 @@
                                        checkBox.Show( );
                        }
                        
-                       internal class ButtonPanel : Panel
+                       internal class PopupButtonPanel : Panel
                        {
                                internal class PopupButton : Control
                                {
@@ -1346,7 +1346,7 @@
                                
                                private ImageList imageList = new ImageList();
                                
-                               public ButtonPanel( FileDialogPanel 
fileDialogPanel )
+                               public PopupButtonPanel( FileDialogPanel 
fileDialogPanel )
                                {
                                        this.fileDialogPanel = fileDialogPanel;
                                        
@@ -1419,7 +1419,7 @@
                                
                                void OnClickButton( object sender, EventArgs e )
                                {
-                                       if ( lastPopupButton != null )
+                                       if ( lastPopupButton != null && 
(PopupButton)sender != lastPopupButton )
                                                lastPopupButton.ButtonState = 
PopupButton.PopupButtonState.Normal;
                                        lastPopupButton = sender as PopupButton;
                                        

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to