<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Eric,<br>
<br>
textCtrlWriteText should do:<br>
<br>
<span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: -webkit-monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><b>textCtrlWriteText</b><span
class="Apple-converted-space"> </span>::<span
class="Apple-converted-space"> </span><a
href="Graphics-UI-WXCore-WxcClassTypes.html#t%3ATextCtrl"
style="color: rgb(0, 0, 224); text-decoration: none;">TextCtrl</a><span
class="Apple-converted-space"> </span>a -><span
class="Apple-converted-space"> </span><a
href="http://www.haskell.org/ghc/docs/latest/html/libraries/base/Data-Char.html#t%3AString"
style="color: rgb(0, 0, 224); text-decoration: none;">String</a><span
class="Apple-converted-space"> </span>-><span
class="Apple-converted-space"> </span><a
href="http://www.haskell.org/ghc/docs/latest/html/libraries/base/System-IO.html#t%3AIO"
style="color: rgb(0, 0, 224); text-decoration: none;">IO</a><span
class="Apple-converted-space"> </span>()<br>
<br>
</span>The wxWidgets documentation states:<br>
<br>
wxTextCtrl::WriteText<span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 19px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><br>
</span>Writes the text into the text control at the current insertion
position.<br>
<br>
Best regards,<br>
Bernd <br>
<br>
Eric schrieb:
<blockquote cite="mid:49B...@ma..." type="cite">
<pre wrap="">Dear all,
I wish to insert text into a text control at the cursor. I've started
with the following code:
i <- textCtrlGetInsertionPoint editor
but looking at the module Graphics.UI.WXCore.WxcClassesMZ I can't find
an action to insert text. Can anyone help?
Eric
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. <a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/www-adobe-com">http://p.sf.net/sfu/www-adobe-com</a>
_______________________________________________
wxhaskell-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:wxh...@li...">wxh...@li...</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/wxhaskell-users">https://lists.sourceforge.net/lists/listinfo/wxhaskell-users</a>
</pre>
</blockquote>
</body>
</html>
|