-
If you use a WTextView in a CarbonEvents environment (i.e.,
PP_Uses_Carbon_Events = true), then there are significant drawing
problems when activating/deactiving a window containing a focused
WTextView. This problem appears to be due to calls to WText::Activate
and WText::Deactivate failing to restore the port origin.
The solution is to save and restore the port origin as follows...
2006-02-09 20:53:20 UTC by rick_aurbach
-
If you save a file as RTF, modify it, and then save, it is saved as
text, not RTF. To fix this, go to the function CompleteSaveAs in
WeDemoNavDialogs.c, and between the SaveDocument and
NavCompleteSave calls, insert:
ioCD -> document->fileFormat = ioCD -> fileFormat;.
2004-02-27 02:15:48 UTC by jwwalker
-
In the demo app, whenever I tried to save a file, the demo was
crashing with an access violation. The crash goes away if you
remove the DisposeNavEventUPP calls. To avoid a leak, instead of
allocating a new UPP each time you use one, just allocate the UPP
once and keep it in a static variable, for instance:
static NavEventUPP GetEventFilterUPP()
{
static NavEventUPP sFilterUPP =...
2004-02-27 01:38:54 UTC by jwwalker
-
While working with WText, I encountered the following
situation: I used a CmdBevelButton to change the color of a
WTextView. The result was that the text would be redrawn
twice, once on top of the button that was pressed, and the
second time in the correct place.
The cause was tracked down to my code selecting all the
text programatically and then calling WESetStyle() to change...
2003-11-02 23:38:51 UTC by nobody
-
I've had problems with WTextView objects not refreshing when a window was resized, or printing when not showing in a window (because it was resized), and tracked down the problem to find that the RevealedRect of my WTextView was set to all zeros when the view wasn't visible.
I assume this is the standard procedure, but other panes manage to figure out when they *are* visible after a window...
2002-09-20 16:15:50 UTC by stravinsky
-
I'm having trouble with window activation and deactivation with 1.03a4 under Jaguar. For some reason, the windows that contain my WTextView derivative are not activated when they are shown.
It appears to me that WText::Activate() hides LView::Activate(); this seems wrong to me. Is it?
Any advice will be greatly appreciated. Email bernstein@eastgate.com.
2002-09-06 17:03:02 UTC by eastgate
-
colouring <TAG>s is one thing but how do you leave it off the undo stack?
pete.
2002-06-06 10:12:28 UTC by peterscott
-
Sirs
html tags or whatever can be coloured as a file is opened but how does one keep track of colouring as the user types?
yours
pete.
2002-03-18 11:33:58 UTC by peterscott
-
oster committed patchset 2 of module wtextview to the WTextView, PowerPlant wrapper for WASTE CVS repository, changing 54 files.
2001-10-11 17:09:07 UTC by oster
-
oster committed patchset 1 of module wtextview to the WTextView, PowerPlant wrapper for WASTE CVS repository, changing 54 files.
2001-10-11 17:09:07 UTC by oster