Re: Re[2]: Activateable cell in wcgrid

Igor Korot <[email protected]> Thu, 10 Jul 2025 07:53:34 -0400
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <CA+FnnTySz=fzW25sBkRXps0G-4vZz415CqTbZTA5AD=FC+VRBQ@mail.gmail.com>
Hi, Vadim,

On Tue, Jul 8, 2025 at 11:24 AM Vadim Zeitlin <[email protected]> wrote:
>
> On Tue, 8 Jul 2025 11:22:52 -0400 Igor Korot wrote:
>
> IK> So what are my options?
> IK>
> IK> I want to use wxChoice as editor and start editing on the very first click,
> IK> displaying the list of choices.
>
>  Use normal editor and call Popup() in your StartingClick().

The suggestion was good but it didn't wr

Tried t debug it and found that

[code]
void
wxGrid::DoGridCellLeftUp(wxMouseEvent& event,
                         const wxGridCellCoords& coords,
                         wxGridWindow* gridWindow)
{
    if ( m_cursorMode == WXGRID_CURSOR_SELECT_CELL )
    {
        if ( coords == m_currentCellCoords && m_waitForSlowClick &&
CanEnableCellControl() )
        {
            ClearSelection();

            if ( DoEnableCellEditControl(wxGridActivationSource::From(event)) )
                GetCurrentCellEditorPtr()->StartingClick();

            m_waitForSlowClick = false;
        }
    }
...
[/code]

the variable m_waitForSlowClick is false.

Also the positon f the editor is wrong. The popup
shows at the top left grid coordinate.

Use wx 3.2.6  on Windows.

Thank you.

>
>  Regards,
> VZ
>
> --
> TT-Solutions: wxWidgets consultancy and technical support
>               https://www.tt-solutions.com/

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/wx-users/CA%2BFnnTySz%3DfzW25sBkRXps0G-4vZz415CqTbZTA5AD%3DFC%2BVRBQ%40mail.gmail.com.