Digital Signature

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

EddieLee
Posts: 118
Joined: Thu Oct 25, 2018 1:06 pm

Digital Signature

Post by EddieLee » Fri Mar 05, 2021 6:28 am

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 !
Eddie :D

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9355
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Digital Signature

Post by richmond62 » 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

Klaus
Posts: 13820
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Digital Signature

Post by Klaus » Fri Mar 05, 2021 3:48 pm

Take a look at the "Signature" widget, that is what you are looking for! :-)

EddieLee
Posts: 118
Joined: Thu Oct 25, 2018 1:06 pm

Re: Digital Signature

Post by EddieLee » Fri Mar 05, 2021 4:25 pm

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!
Eddie :D

EddieLee
Posts: 118
Joined: Thu Oct 25, 2018 1:06 pm

Re: Digital Signature

Post by EddieLee » Fri Mar 05, 2021 4:27 pm

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!
Eddie :D

Klaus
Posts: 13820
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Digital Signature

Post by Klaus » 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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9823
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Digital Signature

Post by FourthWorld » Fri Mar 05, 2021 4:42 pm

Just curious: where on the web can one find the documentation for the signature widget?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Klaus
Posts: 13820
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Digital Signature

Post by Klaus » 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.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9823
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Digital Signature

Post by FourthWorld » Fri Mar 05, 2021 5:41 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9355
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Digital Signature

Post by richmond62 » 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.

EddieLee
Posts: 118
Joined: Thu Oct 25, 2018 1:06 pm

Re: Digital Signature

Post by EddieLee » Fri Mar 05, 2021 8:00 pm

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!
Eddie :D

EddieLee
Posts: 118
Joined: Thu Oct 25, 2018 1:06 pm

Re: Digital Signature

Post by EddieLee » Fri Mar 05, 2021 8:02 pm

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!
Eddie :D

Klaus
Posts: 13820
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Digital Signature

Post by Klaus » Fri Mar 05, 2021 8:08 pm

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 5026 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9355
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Digital Signature

Post by richmond62 » Fri Mar 05, 2021 8:22 pm

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.

jameshale
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 474
Joined: Thu Sep 04, 2008 6:23 am
Location: Melbourne Australia

Re: Digital Signature

Post by jameshale » Sat Mar 06, 2021 1:19 am

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.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”