Opened 8 years ago

Last modified 8 years ago

#11521 new enhancement

Add wxTextCtrl::SetTextBackgroundKind()

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


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 (1)

comment:1 Changed 8 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.