![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Two quick questions:
1. Is there a way to capture an electronic siganture in B4PPC? I need our healthcare app to allow the user to "sign" their name using the stylus/touchscreen option on the PDA, but I haven't seen any function or .dll that allows for this. 2. I am pulling questions from a sqlite database and having them populate a lable control on a form. What is the best way to have the label (or it could be a textbox or other control) automatically re-size to fit the content? If that is not possible, what is the best way to create a lable or control with dynamic text? Thanks for any help you can give. |
|
|||
|
1. I just need to save the signature in a sqlite database. No verification or matching is needed, just need to capture the signature from the stylus. Do you know of a good way, or third party .dll, that will help with this?
2. The reason I need the automatic sizing of the labels is because this program will be deployed on 1,000 machines and the program will be updated regularly with new questions. The questions will be stored in a sqlite database and then displayed one by one on the PDA screen (that is the "short" version!). Since I will not know the size of the questions that will be used in the future, I need to know dynamically how large the question is in order to properly fit it on the screen. Thanks again for the help. |
|
||||
|
There was a user app posted some time ago that captured drawn notes to a bmp(?) file,maybe that helps???
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
|
|||
|
I think I am on the right track with the signature capture. I am using the MouseMove feature in the ImageLib library to capture the starting point and ending point of the stylus and then draw the line using those coordinates. Right now, I have the coordinates posting to a textbox. Now, I just need to delimit the coordinates so that I can parse those to re-create the signature. Here is what I have so far in case anyone is interested:
Sub Globals OldX = "" OldY = "" End Sub Sub App_Start Form1.Show drawer.New1("Form1",false) pen1.New1 (cBlue) End Sub Sub Form1_MouseDown(X , Y ) OldX = X OldY = Y End Sub Sub Form1_MouseMove(X , Y ) If OldX = "" Then OldX = X If OldY = "" Then OldY = Y If Not(OldX = X AND OldY = Y) Then drawer.DrawLine(pen1.Value, OldX, OldY, X, Y) drawer.Refresh(0,0,240,80) 'tb1 is the textbox on Form1 tb1.Text = tb1.Text & OldX & OldY & X & Y End If OldX = X OldY = Y End Sub |
|
||||
|
You could use the ImageLibEx library (requires .Net CF 2.0) to save the image:
Saving an image to a file |
|
|||
|
Thanks guys. I have it working now. I used the code above and then I have two options for storing the image - either as a set of coordinates that I can then re-create an image from or using the ImageLibEx library to save the file as an image. I am testing both to see which is more efficient. Thanks for all of the help.
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Capture basic drawings? | tsteward | Questions & Help Needed | 14 | 08-19-2008 03:40 PM |
| Capture name of control that has focus | aerohost | Questions & Help Needed | 5 | 06-21-2008 11:31 PM |
| Desktop Videocam image capture library | agraham | Additional Libraries | 6 | 05-25-2008 11:00 AM |
| Screen Capture App | sahoopes | Share Your Creations | 3 | 04-17-2008 08:05 AM |
| Label or no label | kavka | Questions & Help Needed | 1 | 03-18-2008 07:06 AM |