[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] EditText question



Richard Christansen writes Wed, 6 May 1998 06:21:18 -0700 (PDT):

>This all makes sense.  The only problem I have is that I wasn't using a
>Dialog box. I was using MacWindow versus a dialog box.  I really don't
>want the window to go away after the "OK" step so I thought that a normal
>window would be better.  I guess I could pop up a dialog box just for the
>entry, but I would prefer to use one window.  Is there any way to enter
>editable text into a normal window?  Or is this just not a Mac thing to do?

Understood. It is a very Macish thing to do IMHO.

You can draw a box and write directly to the box using QuickDraw. How you
do this sort of drawing is set out in the the example 'Window.t' (again in
the folder 'ext') and I can think of nothing useful to add to that.

With MacPerl v520 you can also use TextEdit.pm which does a lot of the
text-handling work for you, such as back-spacing, and if you need it,
selecting, cutting, copying and pasting. And you get a blinking cursor
thrown in for free. You can do all these things with QuickDraw, but it
takes some effort.

However, and particularly if you opt for TE, you probably should think of
making your 'edit box' a 'pane' in the window. That way you would be able
to 'select' the box (in the manner of a 'dialog') using the provisions in
Windows.pm, and set up 'redraw', 'click' and other procedures entirely
specific to the 'pane'. If you want to follow this line (and I think you
would end up liking it) I can send you some odd bits and pieces which you
might find helpful.

Alan Fry



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch