Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #6662 > unrolled thread

How to receive a return value from a closed data window

Started byKrystian Besler <krystian.besler@gmail.com>
First post2014-03-13 09:10 -0700
Last post2014-03-13 21:08 +0100
Articles 6 — 4 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  How to receive a return value from a closed data window Krystian Besler <krystian.besler@gmail.com> - 2014-03-13 09:10 -0700
    Re: How to receive a return value from a closed data window Massimo Bighelli <info@arcasistemi.it> - 2014-03-13 18:21 +0100
      Re: How to receive a return value from a closed data window "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2014-03-14 12:20 +0100
    Re: How to receive a return value from a closed data window Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2014-03-13 18:37 +0100
      Re: How to receive a return value from a closed data window Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2014-03-13 18:38 +0100
    Re: How to receive a return value from a closed data window "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2014-03-13 21:08 +0100

#6662 — How to receive a return value from a closed data window

FromKrystian Besler <krystian.besler@gmail.com>
Date2014-03-13 09:10 -0700
SubjectHow to receive a return value from a closed data window
Message-ID<62d5694a-d498-488c-94ff-d6ed725e3803@googlegroups.com>
Hi,

1.
 Let me describe the problem :
i open a first DataWindow : dtwnd{self,,,}; 
from a menu of the dtwnd i open the next wnd2 := dtwnd2{self:owner,...} and save the object wnd2 in an array declared as protect item of class dtwnd; in this way i may open many such windows (wnd3...) and store them in that array.
My problem is, how to react for closing, for example wnd2 and remove it from the array. Which method of dtwnd "notices" the fact of closing the child window wnd* ?I need this mechanism for automatic closing all the sub windows.

2. Why i must use "self:owner" instead of separate "self" in dtwnd*{self:owner ?
Simple "self" solves the problem, but it does not work in next sub windows.

To Urs;
How do you find the ShowArray function ? it is not listed in alphabetical and category breakdown.

Thanks in advance
Krystian

[toc] | [next] | [standalone]


#6664

FromMassimo Bighelli <info@arcasistemi.it>
Date2014-03-13 18:21 +0100
Message-ID<lfspdn$da5$3@speranza.aioe.org>
In reply to#6662
Krystian,

you have to have access to owner's array of object
in the close method of the dtwnd2 cancel the item related
or
(and this is what I do because I'm interested only in closing all the 
"child" of dtwnd when I close dtwnd)
manage a global array of object with both the owner and the child
write n.2 simple methods (of the shell in my case...) to add and remove 
items
closing dtwnd means close all dtwnd's childs (those with dtwnd as owner) 
if they exist as object...

HTH

*Massimo Bighelli* ARCA Sistemi S.r.l.

[toc] | [prev] | [next] | [standalone]


#6669

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2014-03-14 12:20 +0100
Message-ID<bog735FngmiU1@mid.individual.net>
In reply to#6664
Hi All,
Krystian had some trouble with posting. He asked me to post the message 
below:
regards
Urs
*********************************************
Hi All,

Thanks for replay.
The solution suggested by Massimo (with the global array) seems to me as
not the objective approach. I do not believe, that there is no method
which can "notice" that a child window was closed. Maybe later, when I
better get to know this tool ...
I tested also the Destroy method, but still the object describing the
window was "alive". I looked for a flag in the structure of the window
showing, that this window is already closed. But I did not found.
Currently I test the caption property for empty and do not run the
QueryClose method yet again. When the user closes the window, I clear
the caption - and now it works OK.

Thanks once again for your time and advice

Krystian Besler


"Massimo Bighelli" <info@arcasistemi.it> schrieb im Newsbeitrag 
news:lfspdn$da5$3@speranza.aioe.org...
>
> Krystian,
>
> you have to have access to owner's array of object
> in the close method of the dtwnd2 cancel the item related
> or
> (and this is what I do because I'm interested only in closing all the 
> "child" of dtwnd when I close dtwnd)
> manage a global array of object with both the owner and the child
> write n.2 simple methods (of the shell in my case...) to add and remove 
> items
> closing dtwnd means close all dtwnd's childs (those with dtwnd as owner) 
> if they exist as object...
>
> HTH
>
> *Massimo Bighelli* ARCA Sistemi S.r.l.
> 

[toc] | [prev] | [next] | [standalone]


#6665

FromKarl Faller <mail_withoutthat_@_drei-f_andthat_.de>
Date2014-03-13 18:37 +0100
Message-ID<c4r3i954rhq794mid6882ol9b5i2p2lejm@4ax.com>
In reply to#6662
On Thu, 13 Mar 2014 09:10:34 -0700 (PDT), Krystian Besler
<krystian.besler@gmail.com> wrote:

>How do you find the ShowArray function ? it is not listed in alphabetical and category breakdown.
Do yourself a favour and create a projekt for the SDK - lots of
goodies in there. BTW, ShowArray is in TerminalLite lib...

Karl

[toc] | [prev] | [next] | [standalone]


#6666

FromKarl Faller <mail_withoutthat_@_drei-f_andthat_.de>
Date2014-03-13 18:38 +0100
Message-ID<48r3i9di5lbhtlrftb4a5njhv4ns2blr13@4ax.com>
In reply to#6665
>BTW, ShowArray is in TerminalLite lib...
and, it shows in the Help's index ;-)
>
Karl

[toc] | [prev] | [next] | [standalone]


#6667

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2014-03-13 21:08 +0100
Message-ID<boehhgFd0loU1@mid.individual.net>
In reply to#6662
Hi Krystian,

FUNCTION ShowArray (aTest, cName)

Is a function in the "Terminal lite" Library of VO and is documented in the 
help file. (Function Reference - section Debug)
(See also Karl's answer)

Regards
Urs

"Krystian Besler" <krystian.besler@gmail.com> schrieb im Newsbeitrag 
news:62d5694a-d498-488c-94ff-d6ed725e3803@googlegroups.com...
> Hi,
>
> 1.
> Let me describe the problem :
> i open a first DataWindow : dtwnd{self,,,};
> from a menu of the dtwnd i open the next wnd2 := dtwnd2{self:owner,...} 
> and save the object wnd2 in an array declared as protect item of class 
> dtwnd; in this way i may open many such windows (wnd3...) and store them 
> in that array.
> My problem is, how to react for closing, for example wnd2 and remove it 
> from the array. Which method of dtwnd "notices" the fact of closing the 
> child window wnd* ?I need this mechanism for automatic closing all the sub 
> windows.
>
> 2. Why i must use "self:owner" instead of separate "self" in 
> dtwnd*{self:owner ?
> Simple "self" solves the problem, but it does not work in next sub 
> windows.
>
> To Urs;
> How do you find the ShowArray function ? it is not listed in alphabetical 
> and category breakdown.
>
> Thanks in advance
> Krystian 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web