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

Re: [MacPerl] text input box



At 3:41 pm -0500 12/1/00, ilir topalli wrote:
>I was hoping to put a text input box into a window that I was creating.  Is
>there any way to do this with mac::controls or do I have to redo my window
>as a
>Dialog Box?
>
>Is there something similar to the following Dialog Control:
>[kStaticTextDialogItem(),
>                 Rect->new(10, 10, 220, 30), "insert text here"]


Is the built-in stuff not good enough?  As Chris mentioned the other day,
you can use dialog director to build fancy dialogs, but your requirements
seem minimal.


       #!perl -w
       use strict;
       $_ = &MacPerl'Ask("Type something", "something");
       print "$_\a\n";
       my $answer = &MacPerl'Answer("\n\nYou typed '$_'",
               "Yes","No","Cancel");
       print "$answer\a\n"

JD






# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org