OpenResource Dialog Box Command

Opens the specified GUI resource file and returns a resource handle to be passed to calls like GetResourceString, CreateRequester, and CloseResource.

rsch = OpenResource (resource/s)

Parameters:
resource/s The name of the resource file without the (mandatory) .rsc extension.

Results:
Resource handle.

Notes:
It is the responsibility of the script to close every resource file it opens.

See Also:
AlertRequester, AppendListString, CloseResource, CreateLanguageEngineList, CreateList, CreateRequester, DoLanguageEngineFormatDate, DoLanguageEngineLocalizeString, DoRequester, FreeLanguageEngineList, FreeList, FreeRequester, GetCmdStringFromCoord, GetControlAttr, GetCoordFromString, GetFolderPath, GetResourceString, GetUIStringFromCoord, PrependListString, SetControlAttr, SortList

Examples:
Additional example in RequesterExample.py.
Python:

myResource = "RequestExample"
rscH = OpenResource(myResource)['.result]
if rscH 0:
AlertRequester(AlertType_Error, myResource + ".rsc missing", "OK")
else:
# continue with using the resource
# ... other commands
CloseResource(rscH)

ARexx:

Applescript:


 

OpenResource  Command Definition  url:PGScmd/openresource
  created:2006-05-04 17:23:17   last updated:2006-09-14 09:40:15
  Copyright © 1985-2017 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For OpenResource
There are no user contributed comments for this page.