George Lober wrote:
Jesus Reyes wrote:
--- George Lober <[EMAIL PROTECTED]> escribió:

Hi All,

I have a bit of a problem. This is happening with GTK2.

I have a StringGrid where when the column header is clicked on, a ComboBox appears in the header in the dropped down state. The
dropped down state is done in the mouseDown event of the StringGrid by
doing ComboBox.DroppedDown := true .

The Combobox only stays dropped down while mouse is down.
Preferably I would like it to stay dropped even if the mouse is released, and
only close when a selection is made.

The other more serious problem is that once the ComboBox is used, I

cannot select anything else outside of the StringGrid. I guess what
must be happening is that once the ComboBox pops up it steals the mouse
from the StringGrid, with no proper finish on the StringGrid side of it.

Is there something I can do to get around these problems ?

To note, If I do not have the ComboBox show in the dropped-down
state by doing DroppedDown := true, these problems do not happen, but then
you have to click to have the ComboBox to have it appear and click
again to have it drop down. Not what I want.

BTW, this code runs OK on Delphi with ComboBox staying dropped down
and proper mouse release.


Thanks,
George


Have you tried this in windows?

With Laz/Win32 the behavior is fine, like in Delphi, the drop-down stays after mouseUp and I am able to select other things afterwards.

With Laz/GTK1 I can't say because ComboBox.DroppedDown := true function does not make the ComboBox appear dropped down, so it's the click to get the Combobox and click again to drop it down behavior, and I am able to select afterwards, like in GTK2 when I don't use the DroppedDown function.


Anybody ???

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to