Jump to content

OnMouseDown: Reading tshiftstate?


tappatappa
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...