[wx-dev] wxSTC, SetText and read only

Belgabor belgabor at gmx.de
Mon Mar 31 11:23:10 PDT 2008


Robin Dunn schrieb:
> Belgabor wrote:
>> Hi everybody,
>>
>> is there a good reason SetText doesn't do anything if the 
>> wxStyledTextCtrl is set to read only? I would assume that as the 
>> programmer I know what I'm doing if I call SetText and, provided I 
>> want the control only as a display, removing and resetting read only 
>> before and after respectively seems pretty cumbersome... Also as far 
>> as I know all other controls behave differently.
> 
> That's the way that Scintilla works, wxSTC doesn't do anything special 
> to make it this way.
> 
> 
I suspected that this may be the case. That doesn't make the basic 
behavior logical though...
How about adding a function SetValue to wxSTC that works like the common 
SetValue function of all other similar controls?


More information about the wx-dev mailing list