Jump to content

OnMouseDown: Reading tshiftstate?


tappatappa

Recommended Posts

I don't know if is a missing feature, but I can't read the tshiftstate in a OnMouseDown event

void __fastcall TFrame1::UniCanvasMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y)
{
	if (Shift.Contains(ssShift))
		//do stuff
	else
		//do other stuff
}

the code above always executes the "else" branch. Any ideas / workarounds?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...