Re: Creating a text editor using win32lib?

new topic     » goto parent     » topic index » view thread      » older message » newer message

----Original Message-----
From: Smith Ray <Ray.Smith at FUJITSU.COM.AU>

>Hi,
>
>I was wanting to create a small text editor type program using
>David Cuny's Win32Lib.  Does anyone know if it's possible to
>insert text in a Mletext control at the current cursor position?
>i.e. just like inserting Date/Time from a date/time button.
>
>Also how would I go about / what controls can be used to give
>formatting information, e.g. bold, underline, font sizes,
>colours etc?
>

I have been looking at just the same thing. The file EX12.EXW which comes
with David Cuny's Win32lib seems to be a good start for the colour syntax
part of an editor. One of my ideas would include the ability to minimize a
function/procedure by, say, right-clicking the top line. ie:
----------------------------------------------------------------------------
-----
puts(1,"This is a test")
function demo_fodder(integer r_click)  -- [this line is clicked]
    -- do some code
end function
object anything -- rest of code etc..
----------------------------------------------------------------------------
-----
puts(1,"This is a test")
+FUNCTION demo_fodder(integer r_click)  -- [this routine is now minimized]
object anything -- rest of code etc..
----------------------------------------------------------------------------
-----

Of course clicking the line again will restore it to normal for
editing/viewing etc..

Another idea was to have a setup that tested the speed of a function without
running the whole program.
It would write the function plus some timing code to a temporary file and
then execute it. The timing code would actually do the timing (naturally).

It goes without saying that the ideal editor would run dos or windows code.
I'll definitely want to include this capability.

Yours truly
michael at igrin.co.nz

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu