#11472: wxTE_PASSWORD has to be set initially
----------------------+-----------------------------------------------------
Reporter: MaDsTyLe | Owner:
Type: defect | Status: new
Priority: lowest | Milestone:
Component: wxMSW | Version: 2.8.10
Keywords: | Blockedby:
Patch: 0 | Blocking:
----------------------+-----------------------------------------------------
Hello,
I tried to write the following:
wxTextCtrl* text_ctrl = new wxTextCtrl(parent,ID_PASSWORD);
text_ctrl->SetWindowStyle(wxTE_PASSWORD);
I wondered that my typed characters weren't shown escaped.
So I tried the following:
wxTextCtrl* text_ctrl = new
wxTextCtrl(panel,wxID_ANY,wxEmptyString,wxDefaultPosition,wxDefaultSize,wxTE_PASSWORD);
Now it worked.
Max Deppert
--
Ticket URL: <http://trac.wxwidgets.org/ticket/11472>
#11472: wxTE_PASSWORD has to be set initially
---------------------------+------------------------------------------------
Reporter: MaDsTyLe | Owner:
Type: defect | Status: confirmed
Priority: low | Milestone:
Component: documentation | Version: 2.8.10
Keywords: | Blockedby:
Patch: 0 | Blocking:
---------------------------+------------------------------------------------
Changes (by vadz):
* priority: lowest => low
* status: new => confirmed
* component: wxMSW => documentation
Comment:
I don't know if the native `ES_PASSWORD` style can be set on the control
after creation but probably not so I guess the only thing to do here is to
document this limitation.
I wonder if changing this style works under the other platforms. Looking
at wxGTK it seems like it should work there but it definitely doesn't work
in wxCocoa (you need to create a different kind of control there).
--
Ticket URL: <http://trac.wxwidgets.org/ticket/11472#comment:1>
#11472: wxTE_PASSWORD has to be set initially
---------------------------+------------------------------------------------
Reporter: MaDsTyLe | Owner:
Type: defect | Status: confirmed
Priority: low | Milestone:
Component: documentation | Version: 2.8.10
Keywords: | Blockedby:
Patch: 0 | Blocking:
---------------------------+------------------------------------------------
Changes (by troelsk):
* cc: troelsk@… (added)
Comment:
>I don't know if the native ES_PASSWORD style can be set on the control
after creation
It can:
http://wxforum.shadonet.com/viewtopic.php?t=15093
--
Ticket URL: <http://trac.wxwidgets.org/ticket/11472#comment:2>
#11472: wxTE_PASSWORD can't be changed under MSW/OSX
----------------------+-----------------------------------------------------
Reporter: MaDsTyLe | Owner:
Type: defect | Status: confirmed
Priority: lowest | Milestone:
Component: GUI-all | Version: 2.8.10
Keywords: | Blockedby:
Patch: 0 | Blocking:
----------------------+-----------------------------------------------------
Changes (by vadz):
* priority: low => lowest
* component: documentation => GUI-all
Comment:
This looks like a hack to me but why not... Under OS X we'd need to
recreate the control to allow this. So while I'd accept patches to wxMSW
implementing support for changing the style after creation, it still
wouldn't be supported on all platforms. And I do wonder what can this be
useful for.
The link also shows that I was wrong about this being a documentation
problem, it is already mentioned that `wxTE_PASSWORD` can't be set under
MSW.
--
Ticket URL: <http://trac.wxwidgets.org/ticket/11472#comment:3>