Ticket #2438 (closed defect: fixed)
wxTextCtrl margins depend on initial size
| Reported by: | andreas_pflug | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 3.0 |
| Component: | wxMSW | Version: | 2.9-svn |
| Keywords: | margin edit raymond-chen-needed | Cc: | andreas_pflug |
| Blocked By: | Patch: | no | |
| Blocking: |
Description
The text appearance in a wxTextBox depends on the size
parameter at creation time, the attached png
demonstrates this.
The upper textbox has been created with wxDefaultSize
(from xrc without size parameter, while the lower has
been assigned a dedicated width (xrc definition
100,-1d). Later changes of size won't change the
control's behaviour.
IMHO the textbox should always appear as in the lower
example, because it looks quite ugly if a letter is
painted directly adjacent to the left edge (more
obvious for e.g. M)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

