Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Blake-Madden opened this issue Apr 11, 2024 · 1 comment
Open
Labels

Comments

@Blake-Madden
Copy link
Contributor

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?

@vadz
Copy link
Contributor

vadz commented Apr 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants