Fuer neue Objekte kann man die Zuordnung aendern:
aus REXX Tips und Tricks 3.0 (rxtt30.zip)
-----------------------------------------
Beginning with WARP 4 Fixpack #1 there is a new keyword to set the
default view for a class of files. The syntax for this keyword is:
Class: WPDataFile (?)
Key name: CLASSDEFAULTVIEW
Value: view_name
Description:
"view name" is the name of the view as it appears in the'context menu
for the object. For convenience, spaces or control characters such as
carriage returns, line feeds, or tabs may be omitted (or replaced with
a blank).
Note that this changes the default view for new objects - not for
existing objects!
For example, to change the default view for new .FLC files to Video
Editor you may use the following code:
/* sample code to change the default view for new .FLC files */
call rxFuncAdd "SysLoadFuncs", "REXXUTIL", "SysLoadFuncs"
call SysLoadFuncs
say SysSetObjectData( 'C:OS2APPSKLONDIKE.FLC',,
'CLASSDEFAULTVIEW="Video Editor"' )
To get another example for using this feature, see the file
OS2SETDEFV.CMD
[ Leser: 71 ] |