Jump to content


Photo

Canvas and mobile

TUniCanvas mobile

  • Please log in to reply
4 replies to this topic

#1 gerhardhziegler

gerhardhziegler

    Member

  • uniGUI Subscriber
  • PipPip
  • 41 posts
  • LocationVienna and Berlin

Posted 24 June 2017 - 01:28 PM

Hi,

 

are there any good solutions including examples for using a canvas or any kind of alternative for taking signatures in mobile?

Using TUniCanvas in a mobile forms answers with

 
"Ext.Form.Canvas is not a constructor", I assume, it shouldnt be used that way.

Best regard and greetings, Gerhard

  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3023 posts

Posted 24 June 2017 - 05:27 PM

Hi,

 

Can you try for now with this fine example ?:

http://forums.unigui...-touch-version/

 

Best regards,


  • 0

#3 gerhardhziegler

gerhardhziegler

    Member

  • uniGUI Subscriber
  • PipPip
  • 41 posts
  • LocationVienna and Berlin

Posted 24 June 2017 - 08:30 PM

Thanks a lot.

 

Its really a fine example and I hope, I understood the usage of the frames!

 


  • 0

#4 gerhardhziegler

gerhardhziegler

    Member

  • uniGUI Subscriber
  • PipPip
  • 41 posts
  • LocationVienna and Berlin

Posted 25 June 2017 - 01:16 PM

Hmmm.. doesnt work. I used a frame now, containing the Canvas.

Anyway on opening the mobile form, that is containing the frame, the error "Ext.Form.Canvas is not a constructor" occured.

So did I understand anything wrong? I am not completely sure I understood the concept behind the demo. I did include the JS library, then the constructor error vanished. 

Regards


  • 0

#5 gerhardhziegler

gerhardhziegler

    Member

  • uniGUI Subscriber
  • PipPip
  • 41 posts
  • LocationVienna and Berlin

Posted 25 June 2017 - 05:31 PM

Update 19:20 MEZ:

Could use the LinesGame now for drawing, but its simple not performant enough. Though its server side bitmap manipulation, the mouse events are processed there in LinesTools.MoveDownEvent. I simply dont get how to use the "internal" js functions from unimcanvas-min.js for the usage of drawing while mousemove.


  • 0





Also tagged with one or more of these keywords: TUniCanvas, mobile

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users