Page 1 of 1

Transparent Get's

Posted: Fri Mar 04, 2011 2:49 am
by c-tec
Hello,
is it possible to make transparent getfields ? I have to put them over a form (bitmap as background) for editing.
regards
Rudolf

Re: Transparent Get's

Posted: Fri Mar 04, 2011 2:53 am
by Tom
Hi, Rudolf.

Take a look at this thread in the German Xbase-Forum:

http://www.xbaseforum.de/viewtopic.php?f=23&t=4464

Re: Transparent Get's

Posted: Fri Mar 04, 2011 7:49 am
by c-tec
Hello Tom,
thank you, but found no solution there. Have tried it with persentation parameters and transparent color, but no success.
Have also another problem, it seems no to be possible to make a bitmap the parent of a get. My code results in an error:

Code: Select all

   aPres := {{ XBP_PP_FGCLR,GRA_CLR_BLUE },                     ; /* FG Color  */
          { XBP_PP_BGCLR,XBPSYSCLR_TRANSPARENT}            ; /* BG Color  */
          }

  @ 1,1  DCSTATIC TYPE XBPSTATIC_TYPE_RAISEDBOX SIZE nWx,nWy OBJECT oStati ID "STATIC1"
          DCBITMAP cSavefile PARENT oStatic ID "BITMAP1" OBJECT oBitmap
   @ 1,1 dcget cVar size nWidth,nHeight  parent oBitmap presentation aPres
...

Errormessage:
oError:args :
-> VALTYPE: O CLASS: DC_XbpBitMap
oError:canDefault : N
oError:canRetry : N
oError:canSubstitute: J
oError:cargo : NIL
oError:description : Object has no method with this name
oError:filename :
oError:genCode : 23
oError:operation : currentsize
oError:osCode : 0
oError:severity : 2
oError:subCode : 2220
oError:subSystem : BASE
oError:thread : 6
oError:tries : 0

I have to draw lines on a bitmap and put gets on it. How can I do this ?

regards
Rudolf

Re: Transparent Get's

Posted: Fri Mar 04, 2011 8:44 am
by Tom
A XbpBitmap is not a XbpPart! It's a class for bitmap objects. Try this:

Code: Select all

@ 0,0 DCSTATIC TYPE XBPSTATIC_TYPE_BITMAP CAPTION MYBITMAPRESOURCE SIZE .... OBJECT oBitmap
@ ... DCGET cWhat PARENT oBitmap
SLE transparency is hard to achieve, and it depends on the os, the manifest file and other parameters.

Re: Transparent Get's

Posted: Fri Mar 04, 2011 10:17 am
by Auge_Ohr
c-tec wrote:is it possible to make transparent getfields ? I have to put them over a form (bitmap as background) for editing.
what OS() ?
as Tom say for XP : look at German Xbaseforum

for Win7 : you can try "translucency" (not Transparency) with DWM (Desktop Windows Manager)
see German Xbaseforum http://www.xbaseforum.de/viewtopic.php?f=16&t=4503

where is the "Form" from ? what does the Bizmap "show" ?
... i "think" you try to "simulate" Acrobat "Formfiller" ... did you ?

Re: Transparent Get's

Posted: Fri Mar 04, 2011 10:56 am
by c-tec
Hello Tom,
thank you, your tip does the job.
Jimmy: you are right, I am making software for digital pen & paper systems from Anoto. I have a background image, the strokes from the pen and the data for each field from the character recognition. For verification purpose I want to show one bitmap with the strokes painted over it on the left side of the dialog, and the empty form with getfields at the left side. The gets are containing the results for eventually corrections for the user. With QUICKPDF I have a working solution, I get the forms and can edit the fields, and send them to my integrated webserver for reading the changed fields. But I need also XBase++ Dialogs for editing. It works so far, but would be perfect if the gets would be transparent. Attached a sample form.
I will also take a look at Xoanon, Simon seems to have something in his Tool. But I want to avoid to use another tool for it.
Regards
Rudolf
http://www.ct-pen.com/test/test1.jpg
http://www.ct-pen.com/test/test2.jpg

Re: Transparent Get's

Posted: Fri Mar 04, 2011 11:41 pm
by skiman
Hi Rudolf,

I just watched the video's on the Anoto web site. It seems as this has a lot of potential.

I looked at you sample. Do you write the orderdocument with the pen, and can you transfer afterwards everything to your Xbase program? Is the data correct after transfert. In your sample JPG the handwriting on the document is not very 'nice'. Is this transfered without errors?

Is this working with Active-X?

Re: Transparent Get's

Posted: Sat Mar 05, 2011 12:38 am
by c-tec
Hello Chris,
this is a demo and a little bit corrected ;-) but I have other samples with much worth handwriting, that has a recognition rate of nearly 98%. The best result is with digits and checkboxes. But you also can put a lexicon behind each field for optimization. This technologie is fasciniating and I have a lot of projects here in austria running. Have written a interface in XBase++,eXPress++ XB2NET and SQLEXPRESS and can solve very complicated workflows with it. Also sending photos, determning GPS coordiantes of the user etc. And it works in over 22 languages. This year I will offer a complete system for integration in any XBase++ program.
regards
Rudolf

Re: Transparent Get's

Posted: Tue Mar 08, 2011 12:39 am
by c-tec
Hello,
if somebody is interested in the answer from Simon regarding Xoanon and transparent controls:
There is no reason why you couldn't create any sort of control as a semi-transparent control with Xoanon. Instead of using the built in controls, you would have to draw the control youself and handle it's input, but that is not really too hard of a job.
Basically, what you would do is draw the input field onto a XoCavas() object and then use DrawBlend() to copy the drawing to the screen while blending it with the background, creating transparency. Any control can be created this way, with the caveat that you have to create the control input mechanism yourself rather than relying on built in Xbase++ controls. Of course, this also means your homemade controls can have whatever features you want and any visual style you like, and you can create an interface all your own.
The perfect solution would be a combination af eXPress++ and Xoanon, I think Simon has solved a lot of interesting things regarding graphics.
regards
Rudolf