#Multi-(getxxx) function
4 messages in this thread
Duff,
Yea Duff, I'm wanting it to act just like the DTEXT command does,
where you can EITHER pick the text start point or enter a J for justify
(etc). I need to give the user the ability to re-configure something on
the fly if need be. I suppose I'll just include another funtion that they
will have to key in to do just such. I know I could always use (grread),
but as I indicated in my first message on this thread, I'd rather not. It
would require too much overhead for this size of app.
Thanks anyway…. Mark Scott
Mark – Whoooah! Perhaps I didn't understand your original question, but
if you're referring to the DTEXT command's prompt for the *initial* text
insertion point, where you have the option of specifying the style, or
justification/alignment, then that is easily handled by (initget) and
(getpoint).
I thought you were referring to DTEXT text entry (where *everything* that
you type is taken literally, and where there are no "option" keywords).
For example:
(initget "Style Justify Fit Align")
(setq p1 (getpoint "\nInsertion point or Style/Justify/Fit/Align: "))
The above lets you specify a point, or type in one of the option keywords
that has been initialized by INITGET. You only need to type the first
character in this case, followed by a return.
-TonyT.
Tony,
Yea, Duff told me… I don't know if he understood my question
either, but he told me the same thing you did… Thanks again for the
help…
Mark Scott
Mark – Of course, at the prompt you're talking about, DTEXT doesn't take
just the "J"; the "J" is the start of the "Justify" keyword, and a space or
RETURN must follow it in order for the keyword to be acted upon. This
*can* be accomplished using the (initget) approach I outlined in my
previous message.
What *can't* be accomplished with the (initget) method is DTEXT's handling
of digitizer points *during entry/display of the actual text strings*.