This translation is older than the original page and might be outdated.

DR-Type DRAW


The Type=“DR” (DRaw) is to be able to draw on screen with the finger, ideal for a SIGNATURE-type field.

Attributes:

Attribute Description
stroke-color=“#333333” To indicate the color of the line we are going to draw.
stroke-width=“4” To indicate the size in points of the line we are going to draw.
apply-format-to-file=“true” To indicate that the final image includes the format styles we have applied. If this parameter is false, the final file won´t give any colors and the stroke will be applied in black color and the background in white color.
bgcolor=“#FFFFFF” Background color of the control.
img=“fondo.jpg” Image we want to put in the background.


Example of code:

<prop name="FIRMACLIENTE" type="DR" stroke-width="4" visible="1" stroke-color="#333333" XXXimg="FondoFirm.jpg" apply-format-to-file="true" bgcolor="#ffffff" width="95%" height="30%" forecolor="#339999" file-maxwidth="800" file-maxheight="600" newline="true" disablevisible="MAP_VISIBLEFIRMA&lt;&gt;'1'" />
 
<delfirma show-wait-dialog="false">
	<action name="runscript">
		<script language="VBScript">
			ui.clearDrawing "FIRMACLIENTE" 'Para limpiar el campo del dibujo de la firma en pantalla
			this("FIRMACLIENTE")="" 'Para vaciar el campo que contiene el fichero
		</script>
	</action>
</delfirma>
ui.saveDrawing("FIRMACLIENTE") 'Con este método guardamos el fichero con la firma.