-
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Hello, for some reason the AppArgs array seems to be getting erased when using wxWidgets. Maybe there's a way to access them via wxWidgets with argc/argv but I couldn't figure out how. For example, this works fine without importing wx mod:
SuperStrict
Print "Number of arguments = "+AppArgs.length
For Local a:String = EachIn AppArgs
Print a
Next
But this doesn't:
Framework wx.wxApp
Import wx.wxFrame
Type MyApp Extends wxApp
Field frame:wxFrame
Method OnInit:Int()
frame = wxFrame.CreateFrame(,,"Hello World", 100, 100)
frame.show()
Print "Number of arguments = "+AppArgs.length
For Local a:String = EachIn AppArgs
Print a
Next
Return True
End Method
End Type
New MyApp.run()
When launching each program on the command line with a few parameters, the first example returns all parameters fine, but the wx example only prints out 1 parameter (the command that executed the program)
It used to on previous versions of wxWidgets (or maybe previous MacOS version), but the latest versions seems to be affected. Not sure if this is a bug in wxWidgets or I just need to figure out where to get at the args in wxWidgets. This is on BlitzMaxNG MacOS Catalina. Thanks!
Metadata
Metadata
Assignees
Labels
No labels