Página 1 de 1

MDI question

Publicado: Sab Ago 19, 2006 12:57 pm
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

MDI question

Publicado: Sab Ago 19, 2006 2:51 pm
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

MDI question

Publicado: Sab Ago 19, 2006 2:51 pm
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

MDI question

Publicado: Sab Ago 19, 2006 3:39 pm
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

MDI question

Publicado: Sab Ago 19, 2006 3:39 pm
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

MDI question

Publicado: Lun Ago 21, 2006 4:32 pm
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

MDI question

Publicado: Lun Ago 21, 2006 4:32 pm
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