SetSimpleDialogResourceImage
Declaration
Delphi (DLL)
function SetSimpleDialogResourceImage(ResourceName: ShortString; ResourceFilePath: PAnsiChar; XPos,YPos: Integer; WPARAM: integer ):integer;register;
C/C++ (DLL)
__stdcall int SOPAD_SetSimpleDialogResourceFont(char *ResourceName, char * ResourceFilePath, int WParam);
ActiveX
HRESULT _stdcall SetSimpleDialogResourceImage([in] BSTR ResourceName, [in] BSTR ResourceFilePath, [in] long XPos, [in] long YPos, [in] long WParam, [out, retval] long* Result);
Description
draws a image(BMP, JPG or PNG) at position X,Y on the device. The images needs to placed in the visual area of the display. The display resolution can be found in the following table.Â
Pad Type | Resolution |
---|---|
duraSign Pad Brilliance | 800x480 |
duraSign Pad 10.0 | 1024x600 (in Portrait Mode 600x1024) |
duraSign Pad 4.5 | 480x272 |
Arguments
ResourceName: String;Â
e.g. defaultdialog.ui  (a resource file that is allready on device )
ResourceFilePath: String
resource file an the host machine (will be uploaded to pad, but will not be saved )
XPos: integer
X Position of the left upper corner of the display position
YPos: integer
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.
Possible error codes are listed below: Driver error codes