New topic: 

Webcanvas - Signature Capture

<http://forums.realsoftware.com/viewtopic.php?t=46331>

         Page 1 of 1
   [ 8 posts ]                 Previous topic | Next topic          Author  
Message        softbase          Post subject: Webcanvas - Signature 
CapturePosted: Sun Dec 23, 2012 8:40 pm                         
Joined: Mon Jul 02, 2007 11:25 pm
Posts: 55
Location: Liberty Lake, WA                I'm having a difficult time trying to 
figure out how to use the Webcanvas to do a Signature Capture.

While the left mouse button is depressed, I can not capture mouse movement.  
While the mouse buttons are not pressed, mouse movement can be tracked.  
However, I can't have any capture unless the mouse button is down.

Secondly, I am NOT able to figure out how to capture movement on a touch screen 
like an iPad.  MouseDown or MouseMove don't seem to be triggered when the 
screen is touched.

Can anyone point me in the right direction?

Thanks in advance.      
_________________
MacBook Pro Retina 16GB Ram
RB 2011 R1.1 Enterprise Edition on Mac OS X Snow Leopard 10.8.2 (for desktop)
RB 2012 R2 Enterprise Edition on Mac OS X Snow Leopard 10.8.2 (for web)  
                             Top                DaveS          Post subject: 
Re: Webcanvas - Signature CapturePosted: Sun Dec 23, 2012 9:03 pm               
                  
Joined: Sun Aug 05, 2007 10:46 am
Posts: 4358
Location: San Diego, CA                Never used the WEB version... but in the 
desktop version... MOUSEMOVE is for when the button is NOT pressed
and MOUSEDRAG is for when it is.  Does WEB have a MOUSEDRAG event?

don't forget returning TRUE from MOUSEDOWN (assuming again WEB is similar to 
DESKTOP versions)      
_________________
Dave Sisemore
MacPro, OSX Lion 10.7.4 RB2012r1
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                             Top                softbase          Post subject: 
Re: Webcanvas - Signature CapturePosted: Sun Dec 23, 2012 9:27 pm               
          
Joined: Mon Jul 02, 2007 11:25 pm
Posts: 55
Location: Liberty Lake, WA                No MouseDrag.

Only:

MouseDown
MouseEnter
MouseExit
MouseMove
MouseUp      
_________________
MacBook Pro Retina 16GB Ram
RB 2011 R1.1 Enterprise Edition on Mac OS X Snow Leopard 10.8.2 (for desktop)
RB 2012 R2 Enterprise Edition on Mac OS X Snow Leopard 10.8.2 (for web)  
                             Top                swort          Post subject: 
Re: Webcanvas - Signature CapturePosted: Mon Dec 24, 2012 12:35 am              
           
Joined: Mon May 31, 2010 5:35 am
Posts: 2297
Location: Netherlands                i should recommend you do this on the 
client side (javascript), and not by using server side code.

You could use the WebControlSDK to create a control like that. But digital 
written signatures by mouse i don't like it personally.
Anyway use javascript, as this kind of control is interacting alot over a 
longer time base. The server and client have latency to have in mind, that 
being said means: it slows the communication, uses information you don't need 
(headers etc every time this event will be called from the client, sending you 
the response).      
_________________
SWORT™
- Windows Vista, Windows XP, Windows 7, Linux Mint 11 and Mac OSX Lion
- REAL Studio Enterprise(latest) and WEB Edition(latest)
- Plugins (MBS Complete, ToringoLib, Einhugur, VanHoek + Some open source 
plugins)
For Dutch User Groups ask me to enter!  
                             Top                softbase          Post subject: 
Re: Webcanvas - Signature CapturePosted: Mon Dec 24, 2012 10:05 am              
           
Joined: Mon Jul 02, 2007 11:25 pm
Posts: 55
Location: Liberty Lake, WA                swort wrote:i should recommend you do 
this on the client side (javascript), and not by using server side code.


This is the reason I waited until the new Webcanvas was release.  I was told at 
one point that this was being handled at the client side.  But, without any 
explanation from Real, I'm at a loss at how to utilize it.

Thus, is there anyone at Real that can help me out with this?      
_________________
MacBook Pro Retina 16GB Ram
RB 2011 R1.1 Enterprise Edition on Mac OS X Snow Leopard 10.8.2 (for desktop)
RB 2012 R2 Enterprise Edition on Mac OS X Snow Leopard 10.8.2 (for web)  
                             Top                swort          Post subject: 
Re: Webcanvas - Signature CapturePosted: Mon Dec 24, 2012 10:10 am              
           
Joined: Mon May 31, 2010 5:35 am
Posts: 2297
Location: Netherlands                softbase wrote:swort wrote:i should 
recommend you do this on the client side (javascript), and not by using server 
side code.


This is the reason I waited until the new Webcanvas was release.  I was told at 
one point that this was being handled at the client side.  But, without any 
explanation from Real, I'm at a loss at how to utilize it.

Thus, is there anyone at Real that can help me out with this?

I'm willing to make this a class, specificly for the signature purpose.
But you got to help me by defining what you need. 

Perhaps you can try to look online, for a similar control (jquery or so).      
_________________
SWORT™
- Windows Vista, Windows XP, Windows 7, Linux Mint 11 and Mac OSX Lion
- REAL Studio Enterprise(latest) and WEB Edition(latest)
- Plugins (MBS Complete, ToringoLib, Einhugur, VanHoek + Some open source 
plugins)
For Dutch User Groups ask me to enter!  
                             Top                softbase          Post subject: 
Re: Webcanvas - Signature CapturePosted: Mon Dec 24, 2012 10:41 am              
           
Joined: Mon Jul 02, 2007 11:25 pm
Posts: 55
Location: Liberty Lake, WA                swort wrote:softbase wrote:swort 
wrote:i should recommend you do this on the client side (javascript), and not 
by using server side code.


This is the reason I waited until the new Webcanvas was release.  I was told at 
one point that this was being handled at the client side.  But, without any 
explanation from Real, I'm at a loss at how to utilize it.

Thus, is there anyone at Real that can help me out with this?

I'm willing to make this a class, specificly for the signature purpose.
But you got to help me by defining what you need. 

Perhaps you can try to look online, for a similar control (jquery or so).
I just need to allow a customer to sign the screen, and then I would want to 
grad that graphic and then I'd store it in a BLOB field in my MS SQL database.  
    
_________________
MacBook Pro Retina 16GB Ram
RB 2011 R1.1 Enterprise Edition on Mac OS X Snow Leopard 10.8.2 (for desktop)
RB 2012 R2 Enterprise Edition on Mac OS X Snow Leopard 10.8.2 (for web)  
                             Top                simulanics          Post 
subject: Re: Webcanvas - Signature CapturePosted: Mon Dec 24, 2012 11:38 pm     
                    
Joined: Sun Aug 12, 2007 10:10 am
Posts: 886
Location: Boiling Springs, SC                Why not use previously used 
signature methods found to generate the signature client side using 
JavaScript..and when done use Ajax to post the "image" back to the server in a 
custom websdk control  client side drawing will prevent server latency 
issues...and the JavaScript can already be found here in the forums  ill take a 
stab as well... Merry Christmas and happy holidays everyone...      
_________________
Matthew A. Combatti
Real Studio 2012 r1.2
Visit Real Studio Developer's Spot!
Systems I Use:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8 Beta
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS
~All REAL Compatible~  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 8 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to