PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Parameters passed to the window to open
  • Opening mode of window
  • Number of opened windows
  • Closing a window
  • Title of window to open
  • Minimized window
  • Opening a component window
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Opens a modal WINDEV or WINDEV Mobile window.
Open is also used to:
  • define the display position of window,
  • pass parameters to the window.
During the call to Open, the following processes are run:
  • running the "Declaration code of global variables" of window,
  • running the initialization codes of controls (the order is undefined),
  • running the "Initialization" code of window,
  • displaying the window (this window becomes the current window).
Note: The controls found in the previous window are disabled.
Java In Java, the modal windows appear in the taskbar.
Android Open is not available in Android. Use OpenChild and OpenSister instead. See Specific features of applications for Android for more details.
Universal Windows 10 App Open is not available in Windows Phone. Use OpenChild instead. See Specific features of the applications for Windows Phone for more details.
iPhone/iPad Open is not available in iOS. Use OpenChild and OpenSister instead. See Specific features of applications for iOS for more details.
AndroidiPhone/iPadUniversal Windows 10 App Open is not available. Use OpenMobileWindow instead.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Example
// Open and reposition the "EditWindow" window
// The Value1 and Value2 parameters are passed to the process for
// declaring the global variables of "EditWindow"
// ReturnedValue will retrieve the returned value
// when the "EditWindow" window is closed
ReturnedValue = Open("EditWindow, 10, 15", Value1, Value2)
// Open a window at given position by using variables
x, y are int
x = MouseXPos(mpScreen)
y = MouseYPos(mpScreen)
Open(StringBuild("WIN_Popup,%1,%2", y, x))
Syntax
[<Result> = ] Open(<Window Name> [, <Parameter1> [, <Parameter2> [ , ... ]]])
<Result>: Type corresponding to the retrieved value (optional)
Value returned by the popup window when it is closed. This value is returned:
<Window Name>: Character string (with or without quotes)
Corresponds to:
  • the name of window to open.
  • the name and full path of window (".WDW" file) to open.
By default, the window is displayed according to the position defined in the editor. You have the ability to define the display position of the window. The window name is completed by the display coordinates of window when it is opened. This parameter has the following format:
"<Window Name>, <Y>, <X>"
where:
  • <Window Name>: name (or name and full path) of window to open.
  • <Y>: Y coordinate (in pixels) of window (in relation to the top left corner of screen or parent window).
  • <X>: X coordinate (in pixels) of window (in relation to the top left corner of screen or parent window).
Note: The coordinates are ignored if the window is defined as centered in the editor.
<Parameter 1>: Type of value sent to the window (optional)
First parameter that will be passed to the "Global declarations" process of window to open. This parameter is passed by address and it is considered as being a global variable of the window.
<Parameter 2>: Type of value sent to the window (optional)
Second parameter that will be passed to the "Global declarations" process of window to open. This parameter is passed by address and it is considered as being a global variable of the window.
Remarks

Parameters passed to the window to open

The parameters are retrieved in the "Global declarations" process of window. To do so, specify the following line at the beginning of process:
PROCEDURE <Window Name>(<Parameter1> [, <Parameter2> [, ...]])
See Window with parameters for more details.

Opening mode of window

The window is opened in modal mode:
  • the result of Open will be available once the window is closed,
  • the user will not be able to click in one of the parent windows of current window.
To manage the multi-windowing, use OpenChild or OpenSister. To manage the MDI, use MDIOpen.

Number of opened windows

The number of windows that can be opened simultaneously depends on the available memory.

Closing a window

A window opened by Open can be closed by Close (without parameter) from any process:
  • of the window,
  • of a window control.
If a parent window is closed, its child windows are also closed.

Title of window to open

By default, the window title is the one defined in the editor.
To modify the window title, use NextTitle or CurrentTitle.
WINDEVReports and QueriesWindowsJavaUser code (UMC)

Minimized window

If the current window is minimized, the entire project is minimized.
The displayed icon is:
  • the one of the current window if the current window has an icon,
  • the one of the current project if the current window has no icon.
WINDEVReports and QueriesWindowsWindows MobileUser code (UMC)

Opening a component window

To open a component window, all you have to do is use the name of the component window (the component being included in the project). For example:
Open(ComponentWindow)
If a conflict occurs with a project element, the element name must be prefixed by the component name. For example:
Open(MyComponent.Window)
To use the name of the window in a variable, the name of the component must be specified. For example:
sWindow is string = "MyComponent.MyWindow"
Open(sWindow)
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Minimum required version
  • Version 9
This page is also available for…
Comments
I WILL TEACH HOW TO CALL A BUSINESS REGISTRATION
Aula 1156 WinDev Curso ErpAmarildo 14 - MENU - CHAMAR EMPRESA

Nessa aula de hoje
VOU ENSINAR COMO CHAMAR UM CADASTRO DE EMPRESA
DE UMA EXE, PARA UMA WDL

In this class today
I WILL TEACH HOW TO CALL A BUSINESS REGISTRATION
FROM AN EXE, TO A WDL

En esta clase de hoy
VOY ENSEÑAR COMO LLAMAR UN REGISTRO DE EMPRESA
DE UNA EXE, PARA UNA WDL

//--------------------

EXTERN WIN_Table_empresa
LoadWDL("cadastros.wdl")
Open(WIN_Table_empresa)

//---------------------

Blog com Video e Exemplo

https://forum.pcsoft.fr/pt-BR/pcsoft.br.windev/2403-video-aulas-amarildo-aula-1156-windev-curso-erpamarildo/read.awp

http://windevdesenvolvimento.blogspot.com.br/2017/05/aula-1156-windev-curso-erpamarildo-14.html

https://www.youtube.com/watch?v=NXXjNSX_9Zg


De matos
May 22 2017
Let's do the registry change.
//Aula 1153 WinDev Curso ErpAmarildo 11 - Tabela Codigo de Alteração

//Nessa aula de hoje
//vamos fazer a alteração do registro.

//En esta clase de hoy
//Vamos a cambiar el registro.

//In this class today
//Let's do the registry change.

IF TableSelect(TABLE_QRY_RELACAO_EMPRESAS)=-1 THEN RETURN
_indice is int=TableSelect(TABLE_QRY_RELACAO_EMPRESAS)
HReadSeekFirst(empresa,empresaID,TABLE_QRY_RELACAO_EMPRESAS.COL_EmpresaID)
IF HFound(empresa) THEN
Open(WIN_Form_empresa)
END
TableDisplay(TABLE_QRY_RELACAO_EMPRESAS,taReExecuteQuery)
TableSelectPlus(TABLE_QRY_RELACAO_EMPRESAS,_indice)
De matos
May 18 2017
Let's change the Add Button Code

//Nessa aula de hoje
//Vamos alterar o Codigo do Botao Incluir
//na Relacao de Empresas

//In this class today
//Let's change the Add Button Code
//In the Business Relationship

//En esta clase de hoy
//Cambiar el código del botao Incluir
//En la Relación de Empresas


HReset(empresa)
Open(WIN_Form_empresa)
TableDisplay(TABLE_QRY_RELACAO_EMPRESAS,taReExecuteQuery)
TableSelectPlus(TABLE_QRY_RELACAO_EMPRESAS,TABLE_QRY_RELACAO_EMPRESAS..Occurrence)

//Blog com Video e Exemplo

https://forum.pcsoft.fr/pt-BR/pcsoft.br.windev/2374-video-aulas-amarildo-aula-1150-windev-curso-erpamarildo/read.awp

http://windevdesenvolvimento.blogspot.com.br/2017/05/aula-1150-windev-curso-erpamarildo-8.html

https://www.youtube.com/watch?v=r87vz1ref7k
De matos
May 15 2017