Adding ability to change size of the text control in wxTextEntryDialog (Issue #24465)

13 views
Skip to first unread message

Blake-Madden

unread,
Apr 11, 2024, 7:19:58 PMApr 11
to wx-...@googlegroups.com, Subscribed

I am showing a multiline wxTextEntryDialog for my users to enter a large block of text. However, the default size for this dialog isn't very tall (maybe enough space vertically for two lines of text). You always have to manually resize it to see larger text blocks. The CTOR doesn't have a size param (the control is hard-coded to wxSize(300, wxDefaultCoord)) and I don't see any way to change the size of the text control in the current API other than deriving from wxTextEntryDialog and accessing its m_textCtrl (which is protected).

That's easy enough, but would there be an in interest in having an API for this. For example, adding a SetTextEntrySize(wxSize) function?


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/24465@github.com>

VZ

unread,
Apr 11, 2024, 9:10:57 PMApr 11
to wx-...@googlegroups.com, Subscribed

It would make sense to add wxSize parameter to the dialog ctor, for consistency with just about everything else. This wouldn't allow precisely setting the text entry size, but do we really need this? IMHO just making the dialog "big enough" should be sufficient, in practice.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/24465/2050791887@github.com>

Blake-Madden

unread,
May 24, 2024, 6:02:31 PMMay 24
to wx-...@googlegroups.com, Subscribed

Closed #24465 as completed.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issue/24465/issue_event/12929973401@github.com>

Reply all
Reply to author
Forward
0 new messages