src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/VirtualTreeControl.cs
/// <summary>
///     Begin an edit timer at the given index, or do an immediate activation if appropriate.
/// </summary>
/// <param name="absIndex">The row to start the edit timer</param>
/// <param name="message">The message id (WM_LBUTTONDOWN, etc) used to trigger the activation request.</param>
Begin an edit timer at the given index, or do an immediate activation if appropriate.
Begin an edit timer at the given index or do an immediate activation if appropriate .
private void StartEditTimer(int absIndex, int message)
        {
            var startTimer = false;
            if (GetAnyStyleFlag(VTCStyleFlags.ImmediateMouseLabelEdits | VTCStyleFlags.ImmediateSelectionLabelEdits))
            {
                myEditIndex = absIndex;
                var immediateActivationStatus = true;
                StartLabelEdit(false, message, ref immediateActivationStatus);
                startTimer = !immediateActivationStatus && GetStyleFlag(VTCStyleFlags.DelayedLabelEdits);
            }
            else if (GetStyleFlag(VTCStyleFlags.DelayedLabelEdits))
            {
                startTimer = true;
            }
            if (startTimer)
            {
                myEditIndex = absIndex;
                EditTimer.Interval = SystemInformation.DoubleClickTime;
                EditTimer.Enabled = true;
            }
        }
private void StartEditTimer ( int absIndex , int message ) { var startTimer = false ; if ( GetAnyStyleFlag ( VTCStyleFlags . ImmediateMouseLabelEdits | VTCStyleFlags . ImmediateSelectionLabelEdits ) ) { myEditIndex = absIndex ; var immediateActivationStatus = true ; StartLabelEdit ( false , message , ref immediateActivationStatus ) ; startTimer = ! immediateActivationStatus && GetStyleFlag ( VTCStyleFlags . DelayedLabelEdits ) ; } else if ( GetStyleFlag ( VTCStyleFlags . DelayedLabelEdits ) ) { startTimer = true ; } if ( startTimer ) { myEditIndex = absIndex ; EditTimer . Interval = SystemInformation . DoubleClickTime ; EditTimer . Enabled = true ; } }
Begin an edit timer at the given index, or do an immediate activation if appropriate.
Begin an edit timer at the given index or do an immediate activation if appropriate .
// Attempt an immediate activation.
absIndex
int
The row to start the edit timer
The row to start the edit timer
message
int
The message id (WM_LBUTTONDOWN, etc) used to trigger the activation request.
The message id ( WM_LBUTTONDOWN etc ) used to trigger the activation request .