#15176 closed enhancement (fixed)

Validating wxGridCellTextEditor

Reported by: derEine Owned by:
Priority: low Milestone:
Component: wxGrid Version: stable-latest
Keywords: Cc:
Blocked By: Blocking:
Patch: yes

Description

It would be nice if there is a possibility to validate the text in wxGridCellTextEditor.

As this is not difficult to achieve, I can provide a patch.

Is it better to change the current text editor to support validators or should a new class (e.g. wxGridCellTextValidatorEditor) support this feature?

Attachments (1)

wxGridCellTextEditor2.patch download (2.4 KB) - added by derEine 11 months ago.
Support validators in wxGridCellTextEditor.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 12 months ago by vadz

  • Component changed from GUI-generic to wxGrid
  • Priority changed from normal to low
  • Status changed from new to confirmed

It probably should be part of the same class, at least I don't see any real reason to create another class for it.

And I agree that it would be useful to be able to use the standard validators here, even if we already can do some checks in EndEdit(), thanks in advance!

Changed 11 months ago by derEine

Support validators in wxGridCellTextEditor.

comment:2 Changed 11 months ago by derEine

  • Patch set

comment:3 Changed 11 months ago by VZ

  • Resolution set to fixed
  • Status changed from confirmed to closed

(In [74001]) Allow associating a validator with wxGridCellTextEditor.

Add wxGridCellTextEditor::SetValidator() for finer control over text input in
wxGrid.

Closes #15176.

Note: See TracTickets for help on using tickets.