- Parameters passed to the window to open
- Opening mode of window
- Number of opened windows
- Closing a window
- Title of window to open
- Opening a component window
Open (Function) In french: Ouvre 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 actions are run: - the event "Global declarations" of the window is run,
- the "Initializing" events of the controls in the window are run (the order is undefined),
- the window "Initializing" event is run,
- displaying the window (this window becomes the current window).
Remark: The controls found in the previous window are disabled.
// Open and reposition the "EditWindow" window // The Value1 and Value2 parameters are passed to the event // "Global declarations" 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 up(<Window name> [, <Parameter 1> [, <Parameter N>]])
<Result>: Type corresponding to the retrieved value (optional) Value returned by the popup window when it is closed. This value is returned:- by the RESULT keyword in the "Closing" event associated with the window,
- by ferme,
- by the ReturnedValue property used before closing the window.
<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).
Remark: 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" event of the window to open. This parameter is passed by reference and it is considered as being a variable global to the window.
$~ ... | <Parameter N>: Type of value sent to the window (optional) Nth parameter that must be passed to the "Global declarations" event of the window to open. This parameter is passed by reference and it is considered as being a variable global to the window. Remarks Parameters passed to the window to open The parameters are retrieved in the event "Global declarations" of the window. Simply write the following line of code at the start of the event:
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 known once the window is closed,
- the user will not be able to click in one of the parent windows of current window.
Number of opened windows The number of windows that can be opened simultaneously depends on the available memory. Closing a window A window opened with Open can be closed with ferme (without parameters) from any event associated with the window or a control in the window. 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.
This page is also available for…
|
|
|
| |
| | https://youtu.be/3yWfMrG50_g
https://windevdesenvolvimento.blogspot.com/2019/06/dicas-2147-windev-webdev-mobile.html =========================== // btn_calcula //EDT_VALOR_RESULTADO=EDT_VALOR_1+EDT_VALOR_2+EDT_VALOR_3+EDT_VALOR_4+EDT_VALOR_5 sNOME_CAMPO is string="" FOR nCONTADOR=1 TO 5 sNOME_CAMPO="EDT_VALOR_"+nCONTADOR EDT_VALOR_RESULTADO+={sNOME_CAMPO} END TEXTO is string="FOI FEITO SOMAS" Close(WIN_COMANDOS3,EDT_VALOR_RESULTADO,TEXTO) =========================== // BTN_aBRE_CALCULADORA (EDT_valor_resultado,EDT_RESULTADO)=Open(WIN_COMANDOS3,EDT_valor_A,EDT_valor_b) =========================
|
|
|
|
| |
| |
| |
|
| 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
|
|
|
|
| |
| |
| |
|
| 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) |
|
|
|
| |
| |
| |
|
| 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
|
|
|
|
| |
| |
| |
| |
| |
| |
| | |
|