Skip to content

AppArgs not working with wxMax #44

@peterigz

Description

@peterigz

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions