google-code-export / gambas

Automatically exported from code.google.com/p/gambas
1 stars 0 forks source link

Combobox Click raises Form_Activate Event #248

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1) Describe the problem.

Combobox Click always raises the Form_Activate Event, and it shouldn't AFAIK

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):

Version: TRUNK 3.1.1 
Revision: r4700 
Operating system: Linux
Distribution: Debian Squeeze
Architecture: x86 and x86_64 
GUI component:  QT4 and GTK+
Desktop used: Gnome and KDE

3) Provide a little project that reproduces the bug or the crash.

Attached

5) Explain clearly how to reproduce the bug or the crash.

Run the example provided and try to select one item from the combobox by 
clicking on it.
We are "monitoring" in the console the 'form_activate' event, and yes, it fires 
when selecting an item from de cb.

Original issue reported on code.google.com by ea7...@gmail.com on 10 May 2012 at 10:13

Attachments:

GoogleCodeExporter commented 9 years ago
Why it shouldn't? The combo opens a popup that takes the focus and deactivate 
the form, so when you close the popup, the form is activated again.

Original comment by benoit.m...@gmail.com on 16 May 2012 at 10:17

GoogleCodeExporter commented 9 years ago
Hmm, well I understand... it breaks some logic in a -not sure if well 
programmed- application. Perhaps its needs a redesign. Thanks and sorry for the 
noise.

Original comment by ea7...@gmail.com on 17 May 2012 at 6:47

GoogleCodeExporter commented 9 years ago
No problem. I have the same problem, but this "Activate" event is a low-level 
event managed by the toolkit (and the window manager actually), and so it's 
difficult for me not to raise it for popups triggered by a native widget like 
ComboBox.

Original comment by benoit.m...@gmail.com on 17 May 2012 at 7:30