wxWidgets / wxWidgets

Cross-Platform C++ GUI Library
https://www.wxwidgets.org/
6.09k stars 1.76k forks source link

cannot set font for empty text field #19396

Closed wxtrac closed 2 years ago

wxtrac commented 24 years ago

Issue migrated from trac ticket # 31

component: wxGTK | priority: normal

2000-09-26 22:43:48: anonymous created the issue


Bug#: 90 Product: .wxWindows Version: 2.2.0 Platform: wxGTK OS/Version: Solaris Status: NEW
Resolution: Severity: normal Priority: P2 Component: wxGTK AssignedTo: ???
ReportedBy: wxwin@ncbi.nlm.nih.gov
URL: http://www.ncbi.nlm.nih.gov/IEB/ Cc: wxwin@ncbi.nlm.nih.gov Summary: GTK port: cannot set font for empty text field

wxTextCtrl won't install a new font (with SetFont) unless it has non-empty contents. That is, if wxTextCtrl is empty, then SetFont has no effect. To workaround, I had to put a dummy text like "text" to the control, change font with SetFont, and then call Clear to erase the dummy text.

wxtrac commented 23 years ago

2000-10-20 17:58:27: @vadz commented


fixed in 2.3 branch