<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body>
Matthew Flatt wrote:<br>
<blockquote type="cite"
cite="mid200306270004.h5R04ZjH059693@slow.flux.utah.edu">
<pre wrap="">At Fri, 27 Jun 2003 01:43:56 +0000, "Saint Katsmall T. Wise, Esquire" wrote:
</pre>
<blockquote type="cite">
<pre wrap=""> (define current-style (send the-style-list basic-style))
[...]
(send snip set-style current-style)
(send editor insert snip)
</pre>
</blockquote>
<pre wrap=""><!---->
The `insert' method converts the snip's style to a style in the
editor's style list. (This was not properly documented until recently.)
See the `convert' method of style-list<%> for details, but each style
list's basic style has the name "basic", and conversion maps a named
style to a same-named style. So the snip is getting the "Basic" style
of the style list in `editor', which is probably plain.
If I'm on track, then you can avoid the problem by creating a nameless
style for `current-style'. Then it will get converted the way you
expect.
Matthew
</pre>
</blockquote>
How do you create a nameless style?<br>
Would you <tt>(make-object style%)</tt> or something like that?<br>
<br>
Katsmall<br>
</body>
</html>