Bug 322446 (MONO79743) - PropertyGrid: ColorPicker dropdown control doesn't close
Summary: PropertyGrid: ColorPicker dropdown control doesn't close
Status: RESOLVED FIXED
Alias: MONO79743
Product: Mono: Class Libraries
Classification: Mono
Component: Windows.Forms (show other bugs)
Version: 1.0
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: 1_2
Assignee: Forgotten User CRPsQFwJ3b
QA Contact: Mono Bugs
URL:
Whiteboard: PropertyGrid
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-26 20:58 UTC by Alexander Olk
Modified: 2008-02-09 15:30 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 20:13:57 UTC


---- Reported by alex.olk@googlemail.com 2006-10-26 13:58:47 MST ----

Run an app that uses PropertyGrid (ControlInspector or whatever)

Now try to change a color property. The dropdown color picker control gets
shown. 
Click somewhere else (not inside the dropdown control), the dropdown
control doesn't close.

It is even possible to close all other forms/windows of the app but the app
doesn't exit because of the still visible dropdown window.

Btw, selecting a color is almost not possible.



---- Additional Comments From toshok@ximian.com 2006-10-26 20:33:51 MST ----

fixed in svn r67020.



---- Additional Comments From alex.olk@googlemail.com 2006-10-30 02:49:57 MST ----

No, not fixed. The dropdown window still doesn't close.

And, after the color picker gets shown, the control is just empty. No
colors to choose there.



---- Additional Comments From toshok@ximian.com 2006-10-30 17:47:58 MST ----

you need to be more specific about which cases it's not fixed.  I went
back and found one - it appears that clicking outside the winforms app
doesn't result in the color picker going away, but anywhere inside the
app does.  Is that your finding as well?

The control is fully populated and can be used to pick colors for me.
 Have you updated the design assemblies as well?  or just MWF?



---- Additional Comments From alex.olk@googlemail.com 2006-10-31 03:45:45 MST ----

<quote>it appears that clicking outside the winforms app
doesn't result in the color picker going away, but anywhere inside the
app does.  Is that your finding as well?</quote>

Yes, that is what I'm talking about. But it is also possible to move
the form and the dropdown window stays where it dropped down.
And, as I wrote above, you can close all forms (main form, the dialog
with the control) but the dropdown window doesn't go away. The app is
still running although it should be terminated already.

And, if I try to select a color, the initial "tab" page of the
dropdown color picker doesn't show any colors. It is an empty gray
page, no colors are visible.

And (again:) yes, I'm running mono/mcs svn head. 

Specific enough ? ;-)



---- Additional Comments From toshok@ximian.com 2006-10-31 11:20:46 MST ----

oh huh.. i wonder if the bug with the gray tab is similar to ones we
had recently in TabControl land.

and yeah, that's specific enough :)  thanks much



---- Additional Comments From rolfkvinge@ya.com 2007-07-17 12:40:55 MST ----

Don't know if this issue is actually fixable, the PropertyGrid needs 
to be notified of the click, but can't take any grab since whatever 
control is shown may need it.

On Windows there are hooks that can be set, but I can't find anything 
similar on X.


Unknown operating system unknown. Setting to default OS "Other".

Comment 1 Forgotten User CRPsQFwJ3b 2008-01-26 02:13:48 UTC
Fixed in r93970.
Comment 2 Andy Hume 2008-02-02 19:25:54 UTC
The fault still occurs when one clicks in another window entirely.  (The palette does disappear if the window is moved etc, or the click is in the window itself).

The craziest case is to click a window that covers the propertygrid window, then one is left with the dropdown palette window _over_ the new foreground app.
Comment 3 Forgotten User CRPsQFwJ3b 2008-02-02 20:41:15 UTC
I cannot reproduce the described with SVN HEAD. Once I click on another window it is being closed. Are you testing on windows or linux and are you using svn head?
Comment 4 Gert Driesen 2008-02-02 21:26:23 UTC
It's working fine here too, on both X11 and Win32.
Comment 5 Andy Hume 2008-02-03 20:22:54 UTC
I don't see the problem on Linux SVN HEAD.  But I still see it on Win32 (Windows XP SP2) SVN HEAD [PropertyGridView.cs: ... Revision: 94665, ..., Last Changed Author: ivanz, Last Changed Rev: 94472].

Curious!  I've got MSFT's TweakUi installed but I can't see that I have changed any settings that would affect this.  When there's a 1.9 preview for Win32 I'll test on other machines.

I suggest we assume fixed unless others can repro my case.
Comment 6 Forgotten User CRPsQFwJ3b 2008-02-04 02:38:50 UTC
(In reply to comment #5 from Andy Hume)
> I suggest we assume fixed unless others can repro my case.
> 
Okay closing then.

Comment 7 Andy Hume 2008-02-09 15:30:26 UTC
Sorry chaps I still see this on Windows XP. :-(  I've opened bug 360355 for that platform.  It applies to all drop-down editors.