Opened 17 years ago

Closed 3 years ago

#1626 closed defect (outdated)

[2.8] Multiline TextCtrl in dialog has no height.

Reported by: siona Owned by:
Priority: low Milestone:
Component: wxGTK Version: 2.8.12
Keywords: Cc: siona
Blocked By: Blocking:
Patch: no

Description

A TextCtrl with wx.TE_MULTILINE in a BoxSizer in a dialog (see
attached wxPython example) is given zero height by default. This
appears to be GTK specific -- it has a sensible default height with
MSW and GTK2. It also seems that this only happens if the TextCtrl
is in a sizer (I've tried both BoxSizer and GridSizer) in a dialog
window (the same thing happens if there is an intervening Panel).
With no sizer, or putting the sizer in a Frame, the TextCtrl gets a
reasonable default height.

Attachments (1)

MultilineBugs.py download (606 bytes) - added by siona 17 years ago.
wxPython example of multiline TextCtrl in dialog

Download all attachments as: .zip

Change History (6)

Changed 17 years ago by siona

wxPython example of multiline TextCtrl in dialog

comment:1 Changed 13 years ago by wojdyr

  • Resolution set to outdated
  • Status changed from new to closed

I tried the attached example and it works now (the default height is reasonable). Thanks for reporting.

comment:2 Changed 9 years ago by Alpha

  • Resolution outdated deleted
  • Status changed from closed to reopened

Using a wxTextEntryDialog with wxTE_MULTILINE set causes this bug to occur in Ubuntu 12.04 (C++).

wxWidgets 2.8.12

comment:3 Changed 9 years ago by vadz

  • Summary changed from Multiline TextCtrl in dialog has no height. to [2.8] Multiline TextCtrl in dialog has no height.

This is almost certainly 2.8-specific, I don't see it in 2.9.

comment:4 Changed 9 years ago by vadz

  • Priority changed from normal to low
  • Version set to 2.8.12

comment:5 Changed 3 years ago by oneeyeman

  • Resolution set to outdated
  • Status changed from reopened to closed

2.8 will not receive any updates and multiline text control works fine in the dialogs in both GTK+2 and GTK+3.

Please re-open if you can reproduce it with Git HEAD.

Note: See TracTickets for help on using tickets.