Page 1 of 4

Digital Signature

Posted: Fri Mar 05, 2021 6:28 am
by EddieLee
Hi All,

Does anyone have an experience working with digital signature? I would like to have a field where users can manually draw their signature in that box/field and then upload it to the database as an image. Will start by doing on the android platform first !

Any idea how to start?

Thanks !

Re: Digital Signature

Posted: Fri Mar 05, 2021 2:56 pm
by richmond62
You could start by looking at the pen and the brush tools.
-
SShot 2021-03-05 at 15.53.47.png
-
With the image (fake field) for signatures having this sort of script:

Code: Select all

on mouseEnter
   choose brush tool
   set the brushColor to red
end mouseEnter

Re: Digital Signature

Posted: Fri Mar 05, 2021 3:48 pm
by Klaus
Take a look at the "Signature" widget, that is what you are looking for! :-)

Re: Digital Signature

Posted: Fri Mar 05, 2021 4:25 pm
by EddieLee
richmond62 wrote:
Fri Mar 05, 2021 2:56 pm
You could start by looking at the pen and the brush tools.
-
SShot 2021-03-05 at 15.53.47.png
-
With the image (fake field) for signatures having this sort of script:

Code: Select all

on mouseEnter
   choose brush tool
   set the brushColor to red
end mouseEnter
Hi richmond,

So by using the pen and brush tools it will allow the user to “draw” in the field? So what does it count as? A text or an image?
And also what is the difference with mouseup and mouseEnter?

Thanks!

Re: Digital Signature

Posted: Fri Mar 05, 2021 4:27 pm
by EddieLee
Klaus wrote:
Fri Mar 05, 2021 3:48 pm
Take a look at the "Signature" widget, that is what you are looking for! :-)
Hi Klaus, long time no see! I have messaged you on Skype but I guess you are not using it anymore? How does the signature widget work in term of the scripting part and what does it return as? How does it look like because tried to search on livecode wiki but couldn’t found it. Is it also only Available for indy license and above?

Thanks!

Re: Digital Signature

Posted: Fri Mar 05, 2021 4:36 pm
by Klaus
Hi Eddie,
EddieLee wrote:
Fri Mar 05, 2021 4:27 pm
Hi Klaus, long time no see! I have messaged you on Skype but I guess you are not using it anymore?
as I told you, your are/were the only reason for me to start SKYPE at all.
And since i did not hear from you for a long time, I did not start Skype anymore. 8)
Next time please just send an email, thank you.
EddieLee wrote:
Fri Mar 05, 2021 4:27 pm
How does the signature widget work in term of the scripting part and what does it return as?
Please try that widget!

It is "only" supplying the neccessary means to write a signature -> "image" and pencil.
But does it automatically, then you can export this as an image or print to PDF and do whatever needs to be done with that.

Best

Klaus

Re: Digital Signature

Posted: Fri Mar 05, 2021 4:42 pm
by FourthWorld
Just curious: where on the web can one find the documentation for the signature widget?

Re: Digital Signature

Posted: Fri Mar 05, 2021 5:09 pm
by Klaus
Good question, Richard! :D

In principle, that widget is self-explainig, create it and start signing.
But a TAD more documentation would definitvely not hurt, same for some other widgets.

Re: Digital Signature

Posted: Fri Mar 05, 2021 5:41 pm
by FourthWorld
Klaus wrote:
Fri Mar 05, 2021 5:09 pm
Good question, Richard! :D

In principle, that widget is self-explainig, create it and start signing.
But a TAD more documentation would definitvely not hurt, same for some other widgets.
I do a lot of reading on mobile devices, where no IDE is available. I'm probably not alone.

Re: Digital Signature

Posted: Fri Mar 05, 2021 6:53 pm
by richmond62
And also what is the difference with mouseup and mouseEnter?
mouseUp is sent when the end-user releases the dominant button on their mouse,

mouseEnter is sent when an end-user moves their pointer inwith the object that contains the mouseEnter script.

This is "baby stuff" that can be readily worked out by a quick look in the built-in Documentation.

Re: Digital Signature

Posted: Fri Mar 05, 2021 8:00 pm
by EddieLee
Klaus wrote:
Fri Mar 05, 2021 4:36 pm
Hi Eddie,
EddieLee wrote:
Fri Mar 05, 2021 4:27 pm
Hi Klaus, long time no see! I have messaged you on Skype but I guess you are not using it anymore?
as I told you, your are/were the only reason for me to start SKYPE at all.
And since i did not hear from you for a long time, I did not start Skype anymore. 8)
Next time please just send an email, thank you.
EddieLee wrote:
Fri Mar 05, 2021 4:27 pm
How does the signature widget work in term of the scripting part and what does it return as?
Please try that widget!

It is "only" supplying the neccessary means to write a signature -> "image" and pencil.
But does it automatically, then you can export this as an image or print to PDF and do whatever needs to be done with that.

Best

Klaus
Hi Klaus,

Thanks and noted, I will email you next time instead! Any idea what the signature widget looks like? Can’t find it on the items panel...

Thanks!

Re: Digital Signature

Posted: Fri Mar 05, 2021 8:02 pm
by EddieLee
richmond62 wrote:
Fri Mar 05, 2021 6:53 pm
And also what is the difference with mouseup and mouseEnter?
mouseUp is sent when the end-user releases the dominant button on their mouse,

mouseEnter is sent when an end-user moves their pointer inwith the object that contains the mouseEnter script.

This is "baby stuff" that can be readily worked out by a quick look in the built-in Documentation.
Hi Richmond,

Noted, because I’ve never use mouseEnter before so I just wanna check before I get things wrong. So for the pen and brush tool, what would the field contain at the end?

Thanks!

Re: Digital Signature

Posted: Fri Mar 05, 2021 8:08 pm
by Klaus
EddieLee wrote:
Fri Mar 05, 2021 8:00 pm
Any idea what the signature widget looks like? Can’t find it on the items panel...
Come on, there are no THAT much controls in the tools palette! 8)

It looks like a pencil over a rectangle with rounded corners.
signature_control.jpg
signature_control.jpg (14.61 KiB) Viewed 8004 times

Re: Digital Signature

Posted: Fri Mar 05, 2021 8:22 pm
by richmond62
So for the pen and brush tool, what would the field contain at the end?
There is no field as the pen or brush tool work inwith an image.

Re: Digital Signature

Posted: Sat Mar 06, 2021 1:19 am
by jameshale
Documentation can be found in the Dictionary.
Open the dictionary and click on the guides tab.
Scroll down towards the bottom and you will see all the widget docs.