Opened 4 years ago

Closed 4 years ago

#16317 closed defect (fixed)

wxCHECK_MSG problem since r76629 "Add support for "hint" property in wxTextCtrl XRC handler."

Reported by: troelsk Owned by: VZ
Priority: normal Milestone:
Component: GUI-all Version: dev-latest
Keywords: Cc:
Blocked By: Blocking:
Patch: yes


This check is triggered now always for multiline wxTextCtrl's, and can be seen on startup of the xrc sample. Patch included.

bool wxTextCtrlBase::SetHint(const wxString& hint)
    wxCHECK_MSG( IsSingleLine(), false,
                 wxS("Hints can only be set for single line text controls") );

    return wxTextEntry::SetHint(hint);

Attachments (1)

xh_text.cpp.patch download (455 bytes) - added by troelsk 4 years ago.

Download all attachments as: .zip

Change History (2)

Changed 4 years ago by troelsk

comment:1 Changed 4 years ago by VZ

  • Owner set to VZ
  • Resolution set to fixed
  • Status changed from new to closed

In 76666:

Fix spurious assert when creating multiline wxTextCtrl from XRC.

Don't try to set the hint unconditionally, this doesn't work with multiline
text controls and so resulted in an assert when trying to create one from XRC
since the changes of r76629.

Closes #16317.

Note: See TracTickets for help on using tickets.