Modifyer Keys

BlitzMax Forums/BlitzMax Beginners Area/Modifyer Keys

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm still having issues with this, is it possible there is a bug related to EVENT_GADGETACTION and EventMods()? Here's some basic MaxGUI code I tested:

'quick gui test of eventmods()
'displays the eventmods() value each time the gui button is pressed
'but always displays zero, even with control or shift held down

Strict

Global window:tgadget=CreateWindow("test window",10,10,320,240)
Global button:tgadget=CreateButton("press me",20,20,280,50,window)
Global label:tgadget=CreateLabel("EVENT_GADGETACTION EventMods()=?",20,80,280,30,window)

Repeat

	WaitEvent()
	
	Select EventID()
	
		Case EVENT_GADGETACTION
		
				SetGadgetText(label,"EVENT_GADGETACTION EventMods()="+EventMods())
			
        Case EVENT_WINDOWCLOSE

            End

        Case EVENT_APPTERMINATE

            End
	
	EndSelect
	
Forever


Could somebody else test this and/or get it working? Thank you.