In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

MDI question

Xailer professional forum in English
Responder
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

MDI question

Mensaje por Giuseppe Bogetti »

Hi,
I'm developing an MDI application.
I have a function that makes the connection to a folder containing the
tables I need to manage, each table opened into a MDIChild form.
There can be multiple folders used at the same time.
I have also a function that disconnect the selected folder.
In this function I must close all the child windows that use tables from
the folder I'm disconnecting from. If at least one child form is not closed
the disconnection process has to be aborted. To do this I use the following
code:
FOR EACH oForm IN ::oMDIClient:aForms
oForm:Close()
// Close checking ????
// IF !( IsClosed )
// Stop disconnection process
// ENDIF
NEXT
The question is: How can I be sure that the form has been closed ?
-----------------------
I think I've found a little bug in the sintax highlighting for .RC files
Try use a definition like this
MSG_ASKEXITAPP "Confermi l'uscita dall'applicazione ?"
^ ^
+-----------+
this substring is not shown in red
The same string is displayed correctly in a .PRG file.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
jlalin
Mensajes: 926
Registrado: Sab Dic 25, 2010 11:10 pm

MDI question

Mensaje por jlalin »

Giuseppe,
> The question is: How can I be sure that the form has been closed ?
This should do it:
IF oForm:Close()
...
ENDIF
> I think I've found a little bug in the sintax highlighting for .RC files
> Try use a definition like this
I just fixed it. Many thanks.
Saludos,
José Lalí­n
jlalin
Mensajes: 926
Registrado: Sab Dic 25, 2010 11:10 pm

MDI question

Mensaje por jlalin »

Giuseppe,
> The question is: How can I be sure that the form has been closed ?
This should do it:
IF oForm:Close()
...
ENDIF
> I think I've found a little bug in the sintax highlighting for .RC files
> Try use a definition like this
I just fixed it. Many thanks.
Saludos,
José Lalí­n
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

MDI question

Mensaje por Giuseppe Bogetti »

Il Sat, 19 Aug 2006 14:51:21 +0200, José Lalí­n ha scritto:
Jose,
>> The question is: How can I be sure that the form has been closed ?
>
> This should do it:
>
> IF oForm:Close()
> ...
> ENDIF
>
Thanks for your answer.
I asked because reading the Xailer Help file for the method Close() of
class TForm() the return value is indicated as NIL.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

MDI question

Mensaje por Giuseppe Bogetti »

Il Sat, 19 Aug 2006 14:51:21 +0200, José Lalí­n ha scritto:
Jose,
>> The question is: How can I be sure that the form has been closed ?
>
> This should do it:
>
> IF oForm:Close()
> ...
> ENDIF
>
Thanks for your answer.
I asked because reading the Xailer Help file for the method Close() of
class TForm() the return value is indicated as NIL.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
_support_
Mensajes: 146
Registrado: Lun Abr 10, 2006 1:29 pm

MDI question

Mensaje por _support_ »

Guiseppe,
Fixed. Thanks.
Regards,
"Giuseppe Bogetti" <orangeREMOVEMEsocks@bgsoft.it> escribió en el mensaje
news:1y0m9cfjhza7o.1veji3lplmnl2$[email=.dlg@40tude.net...].dlg@40tude.net...[/email]
> Il Sat, 19 Aug 2006 14:51:21 +0200, José Lalín ha scritto:
>
> Jose,
>>> The question is: How can I be sure that the form has been closed ?
>>
>> This should do it:
>>
>> IF oForm:Close()
>> ...
>> ENDIF
>>
> Thanks for your answer.
>
> I asked because reading the Xailer Help file for the method Close() of
> class TForm() the return value is indicated as NIL.
>
> --
> Best regards,
>
> Giuseppe Bogetti
> B.G. Soft
> Cuneo - Italy
_support_
Mensajes: 146
Registrado: Lun Abr 10, 2006 1:29 pm

MDI question

Mensaje por _support_ »

Guiseppe,
Fixed. Thanks.
Regards,
"Giuseppe Bogetti" <orangeREMOVEMEsocks@bgsoft.it> escribió en el mensaje
news:1y0m9cfjhza7o.1veji3lplmnl2$[email=.dlg@40tude.net...].dlg@40tude.net...[/email]
> Il Sat, 19 Aug 2006 14:51:21 +0200, José Lalín ha scritto:
>
> Jose,
>>> The question is: How can I be sure that the form has been closed ?
>>
>> This should do it:
>>
>> IF oForm:Close()
>> ...
>> ENDIF
>>
> Thanks for your answer.
>
> I asked because reading the Xailer Help file for the method Close() of
> class TForm() the return value is indicated as NIL.
>
> --
> Best regards,
>
> Giuseppe Bogetti
> B.G. Soft
> Cuneo - Italy
Responder