...
Pad Type | Resolution |
---|---|
duraSign Pad Brilliance | 800x480 |
duraSign Pad 10.0 | 1024x600 (in Portrait Mode 600x1024) |
duraSign Pad 4.5 | 480x272 |
Arguments
ResourceName: String;
...
Y Position of the left upper corner of the display position
WParam:DWORD
...
Bit 15 … 9 : reserved Flags
Bit 8 : 0 = use BGR565 color conversion for Image File (RessourceFilePath points to Bitmap/JPG/PNG File)
1 = use B/W conversion for Image File
Bit 7 … 0 :
0 = the image will be drawn to the shadow framebuffer.
...
1 =
...
the image will be drawn to the current framebuffer.
Return value
SetSimpleDialogResourceImage returns (SOPAD_ERROR_SUCCESS = 0) if it was possible to cache the settings.
Otherwise the function returns the appropriate error code. You can get extended error code with the help of GetSOPadError call.
...
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
// Upload Images to the Device (to shadow framebuffer, which means they not directly visible) SigDev.SetSimpleDialogResourceImage('', RessourcePath + 'background-payment.png', 0, 0, 0); SigDev.SetSimpleDialogResourceImage('', RessourcePath + 'checkbox.png', 125, 205, 0); SigDev.SetSimpleDialogResourceImage('', RessourcePath + 'button-accept.png', 750, 410, 0); SigDev.SetSimpleDialogResourceImage('', RessourcePath + 'button-cancel.png', 750, 480, 0); // Update Screen (with all images which are loaded to shadow framebuffer) SigDev.SetSimpleDialogDisplayOption(1, 0); // Alternativ you can also directly draw a new image on the screen, for example if you just want to update a Button, Checkbox, Radiobutton... SigDev.SetSimpleDialogResourceImage('', RessourcePath + 'checkbox.png', 90, 164, 1); |
See also
...