Re: [rt.cpan.org #99607] Issue using wxTextEntryBox

"Patrick via RT" <[email protected]>
Newsgroups gmane.comp.lang.perl.wxperl
Message-ID <[email protected]>
Tue Oct 21 08:04:43 2014: Request 99607 was acted upon.
Transaction: Correspondence added by [email protected]
       Queue: Wx
     Subject: Re: [rt.cpan.org #99607] Issue using wxTextEntryBox
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: [email protected]
      Status: open
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=99607 >


Thanks for the suggestion.  I find it convenient to use explicit identifiers on everything since I do need to use explicit identifiers on some things to access them in certain situations.  This code sample doesn't reflect that fact, but it is a clip from a larger piece.

----- Original Message -----
From: "Steve Cookson via RT" <[email protected]>
To: [email protected]
Sent: Tuesday, October 21, 2014 4:00:48 AM
Subject: Re: [rt.cpan.org #99607] Issue using wxTextEntryBox

<URL: https://rt.cpan.org/Ticket/Display.html?id=99607 >

Hi Patrick,

On 21-10-2014 00:52, Patrick via RT wrote:
> my $self = $ref->SUPER::new( undef,
> 1,
> 'Parent Window',
> Wx::wxDefaultPosition,
> [500, 500],
> );
> my $panel = Wx::Panel->new( $self,
> 2
> );
If you use -1 (or wxID_ANY) as the widget ID, it will assign the next 
free identifier. Then you don't have to keep track of what has already 
been used.

Regards,

Steve.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.