in reply to question about creating windows using WX module

I don't know Wx, but the documentation of the WxFrame from which your class inherited states that its constructor takes the following parameters:
(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "frame" )

For id, the documentation mentions the value -1:

id
The window identifier. It may take a value of -1 to indicate a default value.

Calling a constructor of a different class with different arguments leads to different behaviour.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: question about creating windows using WX module
by Luk (Initiate) on Apr 16, 2020 at 11:19 UTC
    thank you for yor quick response. btw, is this outdated information? https://www.perl.com/pub/2005/10/06/wxperl_menus.html/ I've been messing a bit further around with this but there's no way i can get a sub menu working...even if I follow the example exactly according to that website... (not that I'm using the menu yet, so don't care too much though)
      As I wrote earlier, I have no experience with Wx, I only tried Tk for GUI. To ask a new question, start a new question; and try to provide as much detail as possible (e.g. code that compiles and demonstrates the problem).

      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]