Newsgroup: it.comp.os.os2
Titolo: Aiutino Rexx

call SysOpenObject '<LS_NETMSG>', '4', 'true';
fa quello che deve. Ma, mi chiedo, c'e' una maniera per farglielo 
aprire minimizzato?
Immagino con SysSetObjectData, ma non riesco ad indovinare la sintassi
giusta.
-- 
ciao, Gabriele
[ 
http://www.quasarbbs.net/xwp
 ]
[ 
http://www.quasarbbs.net/ecsoft2/
 ]


 
 The pszSetupString contains a series of "keyname=value" pairs, that
change 
 the behavior of the object. "keynames" are separated by semicolons, and 
 "values" are separated by commas. 
 
 "key=value;key2=value1,value2;"
 
 
 If you want a literal comma or a literal semicolon inside one of your
fields 
 you must type the following: 
     ^,     A literal comma. 
     ^;     A literal semicolon. 
 
  Each object class documents the keynames and the parameters it expects
to 
  see immediately following. See the following keyname-value pairs
tables: 
       WPColorPalette 
       WPDisk 
       WPFolder 
       WPFontPalette 
       WPKeyboard 
       WPLaunchPad 
       WPPalette 
       WPPrinter 
       WPRPrinter 
       WPProgram 
       WPProgramFile 
       WPSchemePalette 
       WPShadow 
       WPObject 
 
  Note that ALL parameters have safe defaults, so it is never necessary
to 
  pass unnecessary parameters to an object. 
  For more information about object classes, see the Workplace Shell 
  Programming Guide. 
  Using HOBJECT for .INI files or files in which an application uses a 
  rename/save/delete sequence is not supported. 
 
 
 
 
 
 Class definition file: wppgm.idl 
 Class hierarchy 
 
 SOMObject
       WPObject 
             WPAbstract 
                   WPProgram 
 
 Description 
 This is the program object class. This class provides an object that
points to executable programs and allows 
 the user to run that program by simply double-clicking on the program
object. The program can also contain a 
 variety of useful additional parameters, such as the environment for
the program and the parameters that are 
 passed to it. An instance of this class can be created as a Workplace
object and is created initially by the 
 system in its template form. It has the title "Program" and resides in
the "Templates" folder. 
 Other instances of this class initially created by the system include: 
       "DOS Full Screen" in the "Command Prompts" folder 
       "DOS Window" in the "Command Prompts" folder 
       "OS/2 Full Screen" in the "Command Prompts" folder 
       "OS/2 Window" in the "Command Prompts" folder 
       Every object in the "Games" folder 
       Some objects in the "Information" folder 
       Every object in the "Productivity" folder 
 
  MenuID list 
  The following list shows the WPMENUID for this class: 
  Menu item text         Object class 
  Program                WPMENUID_PROGRAM 
 
  Instance methods 
  The following list shows all the WPProgram methods: 
       wpAddProgramAssociationPage 
       wpAddProgramPage 
       wpAddProgramSessionPage 
       wpQueryAssociationFilter 
       wpQueryAssociationType 
       wpQueryProgDetails 
       wpQueryProgramAssociations 
       wpSetAssociationFilter 
       wpSetAssociationType 
       wpSetProgDetails 
       wpSetProgramAssociations 
       wpSetProgIcon 
 
  WPObject instance methods 
  The following list shows all the methods overridden by the WPProgram
class. These methods are overridden in 
  order to modify the behavior defined by an ancestor class. 
       wpAddSettingsPages 
       wpCopyObject 
       wpCreateAnother 
       wpCreateFromTemplate 
       wpDragOver 
       wpDrop 
       wpInitData 
       wpMenuItemHelpSelected 
       wpMenuItemSelected 
       wpModifyPopupMenu 
       wpMoveObject 
       wpOpen 
       wpQueryDefaultHelp 
       wpQueryIcon 
       wpQueryIconData 
       wpRestoreState 
       wpSaveState 
       wpSetIconData 
       wpSetTitle 
       wpSetup 
       wpUnInitData 
 
  wpSetup override by WPProgram 
  The following table shows the keyname-value pairs added by the
WPProgram class. 
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿKEYNAME        ÿVALUE                   
ÿDESCRIPTION                   ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿASSOCFILTER    ÿfilters                  ÿSets the filename filter
for  ÿ
  ÿ               ÿ                         ÿfiles associated with
this    ÿ
  ÿ               ÿ                         ÿprogram. Multiple filters
are ÿ
  ÿ               ÿ                         ÿseparated by
commas.          ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿASSOCTYPE      ÿtype                     ÿSets the type of
files        ÿ
  ÿ               ÿ                         ÿassociated with this
program. ÿ
  ÿ               ÿ                         ÿMultiple types are
separated  ÿ
  ÿ               ÿ                         ÿby
commas.                    ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿEXENAME        ÿfilename                 ÿSets the name of the
program. ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿMAXIMIZED      ÿYES                      ÿThe program window
is         ÿ
  ÿ               ÿ                         ÿmaximized upon
startup.       ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿ               ÿNO                       ÿThe program window is
restoredÿ
  ÿ               ÿ                         ÿto normal upon
startup.       ÿ
  ÿ               ÿ                         ÿThis is the default
setting.  ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿMINIMIZED      ÿYES                      ÿThe program window
is         ÿ
  ÿ               ÿ                         ÿminimized upon
startup.       ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿ               ÿNO                       ÿThe program window is
restoredÿ
  ÿ               ÿ                         ÿto normal upon
startup.       ÿ
  ÿ               ÿ                         ÿThis is the default
setting.  ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿPROGTYPE       ÿFULLSCREEN               ÿSets the session type to
OS/2 ÿ
  ÿ               ÿ                         ÿfull-screen
mode.             ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿ               ÿPM                       ÿSets the session type to
PM.  ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿ               ÿPROG_30_STD              ÿSets the session type
to      ÿ
  ÿ               ÿ                         ÿstandard compatibility
full   ÿ
  ÿ               ÿ                         ÿscreen
mode.                  ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿ               ÿPROG_31_ENH              ÿSets the session type
to      ÿ
  ÿ               ÿ                         ÿenhanced compatibility
full   ÿ
  ÿ               ÿ                         ÿscreen
mode.                  ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿ               ÿPROG_31_ENHSEAMLESSCOMMONÿSets the session type
to      ÿ
  ÿ               ÿ                         ÿWIN-OS/2* window in
the       ÿ
  ÿ               ÿ                         ÿWIN-OS/2
enhanced             ÿ
  ÿ               ÿ                         ÿcompatibility common
session. ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿ               ÿPROG_31_ENHSEAMLESSVDM   ÿSets the session type
to      ÿ
  ÿ               ÿ                         ÿWIN-OS/2 window in a
separate ÿ
  ÿ               ÿ                         ÿsession enhanced
compatibilityÿ
  ÿ               ÿ                        
ÿmode.                         ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿ               ÿPROG_31_STD              ÿSets the session type
to      ÿ
  ÿ               ÿ                         ÿstandard compatibility
full   ÿ
  ÿ               ÿ                         ÿscreen
mode.                  ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿ               ÿPROG_31_STDSEAMLESSCOMMONÿSets the session type
to      ÿ
  ÿ               ÿ                         ÿWIN-OS/2 window in
the        ÿ
  ÿ               ÿ                         ÿWIN-OS/2
standard             ÿ
  ÿ               ÿ                         ÿcompatibility common
session. ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿ               ÿPROG_31_STDSEAMLESSVDM   ÿSets the session type
to      ÿ
  ÿ               ÿ                         ÿWIN-OS/2 window in a
separate ÿ
  ÿ               ÿ                         ÿsession standard
compatibilityÿ
  ÿ               ÿ                        
ÿmode.                         ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿ               ÿSEPARATEWIN              ÿSets the session type
to      ÿ
  ÿ               ÿ                         ÿWIN-OS/2 window running in
a  ÿ
  ÿ               ÿ                         ÿseparate
VDM.                 ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿ               ÿVDM                      ÿSets the session type to
DOS  ÿ
  ÿ               ÿ                        
ÿfull-screen.                  ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿ               ÿWIN                      ÿSets the session type
to      ÿ
  ÿ               ÿ                         ÿWIN-OS/2 full
screen.         ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿ               ÿWINDOWABLEVIO            ÿSets the session type to
OS/2 ÿ
  ÿ               ÿ                        
ÿwindowed.                     ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿ               ÿWINDOWEDVDM              ÿSets the session type to
DOS  ÿ
  ÿ               ÿ                        
ÿwindowed.                     ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿ               ÿWINDOWEDWIN              ÿSets the session type
to      ÿ
  ÿ               ÿ                         ÿWIN-OS/2
window.              ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿNOAUTOCLOSE    ÿYES                      ÿLeaves the window open
when   ÿ
  ÿ               ÿ                         ÿthe program
terminates.       ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿ               ÿNO                       ÿCloses the window when
the    ÿ
  ÿ               ÿ                         ÿprogram
terminates.           ÿ
  ÿ               ÿ                         ÿThis is the default
setting.  ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿPARAMETERS     ÿparams                   ÿSets the parameters
list,     ÿ
  ÿ               ÿ                         ÿwhich may include
substitutionÿ
  ÿ               ÿ                        
ÿcharacters.                   ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿSET            ÿXXX=VVV                  ÿXXX is an
environment         ÿ
  ÿ               ÿ                         ÿvariable. VVV sets the
value  ÿ
  ÿ               ÿ                         ÿof the environment
variable.  ÿ
  ÿ               ÿ                         ÿThis is also used to
specify  ÿ
  ÿ               ÿ                         ÿDOS settings on DOS
and       ÿ
  ÿ               ÿ                         ÿWindows**
programs.           ÿ
  ÿ               ÿ                         ÿEach variable/value pair
must ÿ
  ÿ               ÿ                         ÿbe separated by a NULL
(\0),  ÿ
  ÿ               ÿ                         ÿand the entire string must
be ÿ
  ÿ               ÿ                         ÿterminated by two
NULLS       ÿ
  ÿ               ÿ                         ÿ(\0\0). For exmple:
DOS       ÿ
  ÿ               ÿ                        
ÿDEVICE=value\0env=value\0\0   ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
  ÿSTARTUPDIR     ÿpathname                 ÿSets the working
directory.   ÿ
 
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
 
  Example 
  pszSetupString="PROGTYPE=VDM;"
                 "EXENAME=C=\EDIT.EXE;"
                 "ASSOCFILTER=*.DOC,*.TXT;"
                 "ASSOCTYPE=Plain Text;"
                 "SET DOS_DEVICE=1.SYS,2.SYS;"
                 "SET PATH=C:\FRED";
 
  Class methods 
  There are currently no class methods defined for the WPProgram
Workplace class object. 
  WPObject class methods 
  The following list shows all the class methods overridden by the
WPProgram class. These methods are 
  overridden to modify the behavior defined by an ancestor class. 
       wpclsQueryDefaultHelp 
       wpclsQueryDefaultView 
       wpclsQueryIconData 
       wpclsQueryStyle 
       wpclsQueryTitle 
 
ciao piero

In article <RXsjWrZiE0nu-pn2-7NzdvCQCQf5t@localhost>,
ggamba.pl...@tiscali.it
 (Gabriele Gamba) wrote:
 >fa quello che deve. Ma, mi chiedo, c'e' una maniera per farglielo 
 >aprire minimizzato?
 >Immagino con SysSetObjectData, ma non riesco ad indovinare la sintassi
 >giusta.
"MINIMIZED=YES"
-- 
bye
Alessandro Cantatore

 change 
Grazie, tutto questo non lo sapevo e me lo sono salvato per quando 
saro' piu' esperto. Attualmente cosi' funziona:
call SysSetObjectData '<LS_NETMSG>', 'MINIMIZED=YES';
call SysOpenObject '<LS_NETMSG>', '4', 'true';
non so se per caso o meno :-) Non c'e' modo di farlo con una riga 
sola?


In article <RXsjWrZiE0nu-pn2-cdXVyFSYdZoi@localhost>,
ggamba.pl...@tiscali.it
 (Gabriele Gamba) wrote:
 >call SysSetObjectData '<LS_NETMSG>', 'MINIMIZED=YES';
 >call SysOpenObject '<LS_NETMSG>', '4', 'true';
 >
 >non so se per caso o meno :-) Non c'e' modo di farlo con una riga 
 >sola?
call SysSetObjectData '<LS_NETMSG>', 'OPEN=DEFAULT;MINIMIZED=YES';
-- 
bye
Alessandro Cantatore



OK, si impara sempre qualcosa                                         
          ^^^^^^^^^^^^^
Dunque non ci va ne' lo spazio ne' la virgola... grazie!
