Jump to content

Recommended Posts

Posted

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?

Posted

You could create a canvas in javascript, in an htmlframe,

and catch the events directly from the client, sending them

with shiftstate info as an ajaxrequest to that htmlframe.

Posted

Hi delphidude, thanks for the reply.

 

The thing is: in the actual project I work with the UniCanvas->BitmapCanvas (which is the "actual" TCanvas) a lot. How am I supposed to work with a JS canvas like the one you suggested?

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.

×
×
  • Create New...