Re: Prima::Label question

From: Eric Lenio <lenio_at_lenio.net>
Date: Thu, 1 May 2003 17:50:10 -0400
To: Anton Berezin <tobez_at_tobez.org>

Hi Dmitry,

Thank you for your response. I ran your sample code below (much simpler than
my code by the way, I like it), but I still dump core until I bury a "~"
somewhere in the message. Actually it still dumps core if "~" is at the very
end of the label.

I'm not much on debugging core dumps but I suppose now is as good a time as any
to figure it out ... I'll try to snoop around Drawable::text_wrap too.

Thanks again,
Eric.

On Thu, May 01, 2003 at 11:58:45PM +0200, Anton Berezin wrote:
> ----- Forwarded message from owner-prima_at_prima.eu.org -----
>
> From: Dmitry Karasik <dmitry_at_karasik.eu.org>
> Date: 01 May 2003 23:24:09 +0200
> Subject: Re: Prima::Label question
>
> Hi Anton!
>
> On 01 May 03 at 22:29, "Anton" (Anton Berezin) wrote:
> >>
> >> I'm trying to build a simple message box: It displays a question in a
> >> Prima::Label, then has 2 buttons: OK and Cancel. When I don't put a
> >> "~" in the label I get a core dump. But the label really can't get
> >> focus, so I don't want to put a "~" in the label. Any comment on this?
> >>
>
> Hi,
>
> I also cannot reproduce your problem, but my intuition tells me
> that if it's coredump, then it's most probably Drawable::text_wrap,
> which is spagettish and not easily debugged - you may try, though :)
>
> As an immediate solution, you may look to Prima::MsgBox::message_box,
> beginning with the following template:
>
> use Prima;
> use Prima::Application;
> use Prima::MsgBox;
>
> my $ret = Prima::MsgBox::message_box("box",
> "This is ok-cancel message box", mb::OkCancel);
> print +($ret == mb::OK) ? "OK\n" : "Cancel\n";
>
>
> --
> Sincerely,
> Dmitry
>
> --- www.karasik.eu.org ---
>
> Life ain't fair, but the root password helps.
> - BOFH
>
>
>
> ----- End forwarded message -----
>
> --
> Perl is strongly typed, it just has very few types. -- Dan Sugalski
Received on Fri 02 May 2003 - 00:51:18 CEST

This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:04 CET