Mark Dootson <mark.doot...@znix.com> writes:

> If you want to catch events from a 'Container', the simplest case is
> to use a Wx::Panel.

Funny, this is much like the problem I ran into lately.

In the example program, when you comment out 

  #   EVT_RIGHT_DOWN($st,  sub{print "I clicked the Text!\n"});

the resultant program doesn't do anything when right-clicked on the text
while I'd consider it more logical to see an "I clicked the box!"
message. Especially since there's no visual clue where the text area is
(try removing wxEXPAND from

    $boxsizer   ->  Add($st, 0, wxEXPAND|wxALL, 10);

).

Yes, there's an explanation and a solution (workaround?) but in my
opinion the behaviour should have more logical.

-- Johan

Reply via email to