Hi Roman,
Have you tried Add instead of AddWindow?
$this->{sizer_mnozstvi_jednotka}->Add($this->{sizer_pocet}, 1,wxGROW |
wxALL, $border);
Regards,
bungsu
> Hello,
> I'm not so strong in wxWidgets so it can be something I simply oversee,
> but
> I've spent a lot of time with this issue and did not find any solution.
>
> I'm writing application in perl for MS Windows using on wxWidgets. I'm
> using ActivePerl version 5.8.8. Originally I've started with Wx version
> 0.26 also provided by ActiveState. Now I have version 0.81 compiled by
> myself but I'm receiving the same error message at the same line...
>
> variable is not of type Wx::Window at ... line 107.
>
> This message refer to code for placing components to my new window
>
> $this->{sizer_mnozstvi_jednotka}->AddWindow($this->{sizer_pocet}, 1,
> wxGROW | wxALL, $border);
>
> where
> - $this is instance of My::Dialog::Zbozi - derived from Wx::Dialog
> - $this->{sizer_mnozstvi_jednotka} and $this->{sizer_pocet} are
> instances of Wx::BoxSizer
> $this->{sizer_mnozstvi_jednotka} = Wx::BoxSizer->new(wxHORIZONTAL);
> $this->{sizer_pocet} = Wx::BoxSizer->new(wxVERTICAL);
>
> What is wrong? Any suggestions?
>
> OS: MS Windows XP Professional
> Perl: ActivePerl 5.8.8
> wxWidgets: 2.8.7 build with SHARED=1 UNICODE=1 MSLU=1
> Wx: 0.81
> Alien::wxWidgets: 0.33
>
>
> Thank you for your help
>
> Regards,
> Roman
>