----- 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 SugalskiReceived on Thu 01 May 2003 - 23:59:18 CEST
This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:04 CET