[wx-dev] #9572: Incorrect displaying labels of controls that begins from 0xFF letter in ansi build

wxTrac noreply at wxsite.net
Fri Jun 13 13:19:24 PDT 2008


Ticket URL: <http://trac.wxwidgets.org/ticket/9572>

#9572: Incorrect displaying labels of controls that begins from 0xFF letter in
ansi build
---------------------+------------------------------------------------------
 Reporter:  kosenko  |       Owner:        
     Type:  defect   |      Status:  new   
 Priority:  normal   |   Milestone:  future
Component:  wxMSW    |     Version:        
 Keywords:           |   Blockedby:        
    Patch:  1        |    Blocking:        
---------------------+------------------------------------------------------
 wx 2.8.7 UNICODE=0
 msvc 7.1, xp sp2
 Tested on OS with codepage windows-1251
 In this codepage 0xFF letter is cyrillic Ya
 http://en.wikipedia.org/wiki/Ya_%28Cyrillic%29
 In windows-1252 codepage it looks like it is y with Umlaut (diacritic)
 letter http://en.wikipedia.org/wiki/Windows_1252,
 http://en.wikipedia.org/wiki/%C5%B8

 Steps to reproduce:
 1. Apply samples.patch on minimal sample
 2. Run this sample
 3. Select Menu/Help/About
 Expected result: six controls with XTest label, where X is 0xFF letter in
 your current codepage
 Actual result: wxButton, wxCheckBox, wxStaticText and wxToggleButton has
 no label. wxTextCtrl has wrong label ([][]Edit). wxComboBox has label as
 expected.

 Reason:
 ::CreateWindowEx do not sets correctly labels that begins with 0xFF
 letter. (But ::SetWindowText works as expected)

 Proposed solution:
 Make ::SetWindowText call after creation of all controls in ansi build to
 do not miss any one.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/9572>


More information about the wx-dev mailing list