2 Replies Latest reply on Dec 5, 2012 1:27 AM by Ameer Ilahi

    How to check if something has been scribbled on the Signature Control?

      Hi,

      I have a form in my application which requires the user to provide a signature before continuing to the next screen. How can i check if something has been scribbled on the Signature Control?

      I have used the SignatureInline sample (from https://github.com/rhomobile/rhodes-system-api-samples/tree/master/app/SignatureInline) to create the signature control on the form.

       

      from the code given in the sample, when i change the line

      Rho::SignatureCapture.visible(true, :penColor => 0xFFFF0000, :penWidth=>5, :border => true, :bgColor => 0x4F00ff00, :left => @params['left'], :top => @params['top'], :width => @params['width'], :height => @params['height'] )
      

       

      to

      Rho::SignatureCapture.visible(true,:penColor=> 0x000000,:penWidth=>5,:border=>true,:bgColor=> 0xffffff,:left=>@params['left'],:top=>@params['top'],:width=>@params['width'],:height=>@params['height'])
      

       

      nothing is drawn on the control. I am trying to change the pen color to black with a white background. is there something else that's need doing?

       

      thanks.