Ticket #11521 (new enhancement)

Opened 3 years ago

Last modified 3 years ago

Add wxTextCtrl::SetTextBackgroundKind()

Reported by: vadz Owned by:
Priority: low Milestone:
Component: wxMSW Version: 2.9-svn
Keywords: grey background simple Cc:
Blocked By: Patch: no
Blocking:

Description

As discussed in  this thread it would be nice to have a possibility to choose if the background of read-only multiline controls is white or grey under MSW. The best way to do this seems to be to add a new SetTextBackgroundKind() function which would take either wxTE_BG_KIND_STATIC or wxTE_BG_KIND_TEXT to make the control label-like (grey background) or text-like (white one).

This function probably wouldn't do anything under the other platforms.

Change History

Changed 3 years ago by VZ

(In [62804]) Use white background by default for multiline readonly wxTextCtrl under MSW.

The best default behaviour seems to be to use white background for multiline
text controls even when they're read-only, as in previous wx versions.

Also see #11521 which could be implemented to make this configurable.

Note: See TracTickets for help on using tickets.