OraFormsWindowUpdate Function

Action

Modifies the status of a specified window.

Include file

OraForms.bdh

Syntax

OraFormsWindowUpdate(  in sName   :  string, 
                       in nAction :  number, 
                       in bStatus :  boolean ) :  boolean;

Return value

  • true if successful
  • false otherwise
Parameter Description
sName The window's unique name.
nAction

Can be any of these values:

  • ORA_WINDOW_VISIBLE
  • ORA_WINDOW_MAXIMIZED
  • ORA_WINDOW_ICONIFIED
  • ORA_WINDOW_ACTIVATED
bStatus Specifies whether to set the status as defined by the previous parameter.

Example

dcltrans 
  transaction TMain 
  var 
  begin 
    OraFormsSetPoint( "INITIAL_SCALE_INFO", 8,  20); 
    OraFormsSetBoolean( "WINSYS_REQUIREDVA_LIST",  false); 
    OraFormsSetString( "DEFAULT_LOCAL_TZ", "Europe/Berlin"); 
    OraFormsConnect( "server module=iorganizer.fmx userid=iorg/iorg@ORCL_server sso_userid= usesdi=yesrecord=names"); 
    OraFormsSetFocus( "LOGIN_PB_ENTER_0"); // Enter 
    OraFormsButtonPress( "LOGIN_PB_ENTER_0");  // Enter 
    // Incorrect Login Information. Do you want to register? 
    OraFormsMessageBoxButton( "Incorrect Login", ORA_ALERT_NO); 
    OraFormsWindowUpdate( "Oracle iOrganizer", ORA_WINDOW_ACTIVATED, true); 
    OraFormsCloseWindow( "Oracle iOrganizer");
  end TMain;