QRCode: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[ | [[File:Qrcode.png]] | ||
== Description == | == Description == | ||
The | The QRCode control is used to display a [https://en.wikipedia.org/wiki/QR_code QR Code]. QR Codes are widely used to make scannable web links, but have other uses as well. | ||
To add an image to your app, choose the QRCode icon in the Toolbar, then position it on the Design Screen. Use the Property Editor to set the properties you need, then add functions to your code to respond to the events that come from the button: usually, just onclick. | |||
QR Code default to 115 x 115 pixels. | |||
== Properties == | == Properties == | ||
Line 40: | Line 14: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| | | value || The text to be converted to a QR Code. Can be a URL or any other text string. | ||
|} | |} | ||
Line 50: | Line 24: | ||
<pre> | <pre> | ||
Function QRCode1_onclick() | |||
Function | Msgbox "Click!" | ||
Msgbox " | |||
End Function | End Function | ||
</pre> | </pre> | ||
To change | To change a QRCode at runtime, use | ||
<pre> | <pre> | ||
QRCode1.setValue(Input1.value) | |||
</pre> | </pre> | ||
Line 71: | Line 37: | ||
<pre> | <pre> | ||
//Image Example | //Image Example | ||
Image1. | Image1.onclick= function() { | ||
alert(" | alert("Click!"); | ||
} | } | ||
</pre> | </pre> | ||
Line 78: | Line 44: | ||
To change an image at runtime, use | To change an image at runtime, use | ||
<pre> | <pre> | ||
QRCode1.setValue(Input1.value); | |||
</pre> | </pre> | ||
Revision as of 15:14, 14 September 2016
Description
The QRCode control is used to display a QR Code. QR Codes are widely used to make scannable web links, but have other uses as well.
To add an image to your app, choose the QRCode icon in the Toolbar, then position it on the Design Screen. Use the Property Editor to set the properties you need, then add functions to your code to respond to the events that come from the button: usually, just onclick.
QR Code default to 115 x 115 pixels.
Properties
Standard properties are supported, plus:
value | The text to be converted to a QR Code. Can be a URL or any other text string. |
Events
Standard events are supported.
Example (Basic)
Function QRCode1_onclick() Msgbox "Click!" End Function
To change a QRCode at runtime, use
QRCode1.setValue(Input1.value)
Example (JavaScript)
//Image Example Image1.onclick= function() { alert("Click!"); }
To change an image at runtime, use
QRCode1.setValue(Input1.value);