Copyright 1999-2009 GrasshopperLLC    

 
<< OpenDocumentOpenWindow >>
Top: Documentation LibraryUp: O Commands

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 2001-2009 GrasshopperLLC

User Contributed Comments For OpenResourcesign in to add a comment
There are no user contributed comments for this page.

<< OpenDocumentOpenWindow >>
Top: Documentation LibraryUp: O Commands

 

ACCOUNT

Username:
Password:
    Lost your password?
    Register

NAVIGATION

    Front Page
    Purchase
    In My Country
    Downloads & Demos
  About PageStream
    Overview
    History
    Features
    Comparison
    Reviews
    New in 5.0
    New in 5.0 Pro
  Documentation & Help
    Table of Contents
    Search
    Recent Changes
    Mailing Lists
    Contact Us
    Bug Tracking

Recent Files Uploaded
Recent Downloads Most Popular
Amiga-OS3-68k
 PageStream 5.0.5.7 
 PageStream 5.0.5.6 
 PageStream 5.0.5.5 
 PageStream 5.0.5.4 
Linux-i64
 PageStream 5.0.5.7 
Linux-x86
 PageStream 5.0.5.7 
Macintosh-OSX
 PageStream 5.0.5.7 
Windows
 PageStream 5.0.5.7 
Grasshopper Publishing PageStream SoftLogik DTP DeskTop PublishingIn the high plains of South Dakota, USA
Copyright 1999-2009 Grasshopper LLC
sales@pagestream.org

Sign In | Register | FrontPage | Purchase | Downloads | Search