1. Re: Don Phillips Syntax xControl

Never mind! After poking around I realized that the Syntax control is a
RichEdit, not an MleEdit, so i have to use getStream() and putStream() for
the text!

~Greg



----- Original Message -----
From: "Greg Haberek" <g.haberek at comcast.net>
To: "EUforum" <EUforum at topica.com>
Subject: ATTN: Don Phillips Syntax xControl


>
>
> to Don Phillips or any one who can help:
>
>     I know the Syntax control in xControls is a bit out dated, but it's
> pretty easy to work with, and it does what i need it to do. Of course,
> setText() works fine to set the text, but getText() returns nothing {},
why?
>
> ~Greg
>
> Here is a demo program to test, the text should be copied from Text1 to
> Text2, but it isn't.
>
> -- begin demo --
> include Win32Lib.ew
> include xControls.ew
>
> constant
>     Main = create( Window, "Syntax Text Test", 0, Center, Center, 430,
240,
> 0 ),
>     Text1 = xControl( Syntax, "", Main, 5, 5, 200, 200, 0, 0 ),
>     Text2 = xControl( Syntax, "", Main, 215, 5, 200, 200, 0, 0 )
>
>     setText( Text1, "-- this is a comment\r\nHello there!" )
>     setText( Text2, getText(Text1) )
>
> WinMain( Main, Normal )
> -- end demo --
>
> --^----------------------------------------------------------------
> This email was sent to: g.haberek at comcast.net
>
>
> TOPICA - Start your own email discussion group. FREE!
>
>

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu