In my application, when creating a new editor control (all using the same syntaxlanguage) and reloading the user's preferences, if the user has wrapping turned on with no width specified then it always comes up 4 characters wide. If a width is specified then everything works normally. The only way to force the control to update is to actually resize the control. Calling Refresh() or RefreshOutlining() doesn't make any difference. This is not immediately reproduceble in the sample app.
I believe what is happening is that in whatever unusual sequence I'm initializing things, somewhere you have code that says if the wrap width is < 4 then width = 4 (in other words not accounting for -1). When resizing the control the correct logic takes over and fills the screen.
I'll look to repro this in the sample app (which may not be possible) but can you double-check that there are no circumstances under which you're forcing the width? Thanks.
I believe what is happening is that in whatever unusual sequence I'm initializing things, somewhere you have code that says if the wrap width is < 4 then width = 4 (in other words not accounting for -1). When resizing the control the correct logic takes over and fills the screen.
I'll look to repro this in the sample app (which may not be possible) but can you double-check that there are no circumstances under which you're forcing the width? Thanks.
------------------------------- Marianne