Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] StyledText & StyledText2

Lodewijk Pool (louis.pool@xxxxxxxxx):

> Just wanted to know what the difference between the two are, why there are
> these two seemingly similar components, and which one is the preferred one
> to use.
> 
> I'm asking because I previously used StyledText2 over StyledText because it
> supported a way to set the Margins. However when I downloaded and installed
> the newest SWT API, the method had been removed. Without any sortof
> deprecation warning at all. It wasn't such a big deal though, since
> StyledText had acquired new ways to indent Text with the new API and now I
> use StyledText instead of StyledText2. I suspect that the use of StyledText2
> is probably not such a good idea.

  StyledText2 is a backup of the old StyledText code and is there to
assist in debugging.  It is not intended to be used and will be removed
before 3.2.  It used to hold some experimental code which is probably
why it had the API you saw.

  -Billy



Back to the top