RESOURCE Property
PLBCMP GUI Only
The RESOURCE property allows access to the resource identification number of an object. The property uses the following format:
RESOURCE={value}
Note the following:
RESOURCE may be used in CREATE, SETPROP or GETPROP statements of ICON, IMAGELIST, or PICT objects.
The {value} is valid resource id that may be found in a resource DLL or in resources loaded for a PLFORM
The PL/B Web Server supports the RESOURCE property for the PICT and ICON objects (9.7C). In this case, the resources are limited to the '.jpg', '.ico', '.gif', and '.bmp' image types. When using this property, a CREATE of a PICT or ICON object with a RESOURCE property causes the image to be extracted from a '.pwf' and written as an image file into the PWS 'http_root\images' directory by default. The PWS keywords named 'PLBWEB_IMAGES={directory}' and 'PLBWEB_EXTRACT_IMAGES={on|off}' control the automatic image extraction by the PWS server.
If
both the RESOURCE and the URLSOURCE
properties are used in a '.pwf', the URLSOURCE image reference is loaded by the client browser.
If
both the RESOURCE and the URLSOURCE properties are used in a '.plf', the URLSOURCE is ignored by a PLBWIN\PLBNET
runtime.
This property is ignored for an IMAGELIST when using the PL/B Web Server.
See Also: Object Properties, Object IO Instructions, Object Definitions
![]() |