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


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

Closing windows

Started byKrystian <softb@softb.pl>
First post2017-09-05 02:15 -0700
Last post2017-09-05 05:24 -0700
Articles 3 — 2 participants

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


Contents

  Closing windows Krystian <softb@softb.pl> - 2017-09-05 02:15 -0700
    Re: Closing windows Karl Wochele <kw@ecos-system.invalid> - 2017-09-05 11:48 +0200
      Re: Closing windows Krystian <softb@softb.pl> - 2017-09-05 05:24 -0700

#10947 — Closing windows

FromKrystian <softb@softb.pl>
Date2017-09-05 02:15 -0700
SubjectClosing windows
Message-ID<83adc623-efb2-4aa2-bd12-06813f9467af@googlegroups.com>
Hi VO experts!

How may i recognize which method to use (EndWindow() vs EndDialog()) for closing windows stored in an array : {ownd1, ownd2, ...} ? Which property of the object informs about proper method ?
Of course i may store the information in an array : {{ownd1, true}, {ownd2, false}}, but it is trivial.

Thanks
Krystian

[toc] | [next] | [standalone]


#10948

FromKarl Wochele <kw@ecos-system.invalid>
Date2017-09-05 11:48 +0200
Message-ID<oolrsj$jba$1@solani.org>
In reply to#10947
Hi Krystian,

you could use

if ismethod(oWnd,#Enddialog)
    oWnd:Enddialog()
elseif ismethod(oWnd,#EndWindow)
    oWnd:Endwindow()
endif

or

if isinstanceof(oWnd,#Dialogwindow)
    oWnd:Enddialog()
else
    oWnd:Endwindow()
endif

HTH
Karl

Am 05.09.2017 um 11:15 schrieb Krystian:
> Hi VO experts!
> 
> How may i recognize which method to use (EndWindow() vs EndDialog()) for closing windows stored in an array : {ownd1, ownd2, ...} ? Which property of the object informs about proper method ?
> Of course i may store the information in an array : {{ownd1, true}, {ownd2, false}}, but it is trivial.
> 
> Thanks
> Krystian
> 

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


#10949

FromKrystian <softb@softb.pl>
Date2017-09-05 05:24 -0700
Message-ID<ef2536da-0f24-49b1-bf27-b710f0d19a39@googlegroups.com>
In reply to#10948
Hi Karl,

It is pretty - so simple and so usefull. I was looking for in quite another regions.

It really helps.
Thanks very much
Krystian

W dniu wtorek, 5 września 2017 11:48:04 UTC+2 użytkownik Karl Wochele napisał:
> Hi Krystian,
> 
> you could use
> 
> if ismethod(oWnd,#Enddialog)
>     oWnd:Enddialog()
> elseif ismethod(oWnd,#EndWindow)
>     oWnd:Endwindow()
> endif
> 
> or
> 
> if isinstanceof(oWnd,#Dialogwindow)
>     oWnd:Enddialog()
> else
>     oWnd:Endwindow()
> endif
> 
> HTH
> Karl
> 
> Am 05.09.2017 um 11:15 schrieb Krystian:
> > Hi VO experts!
> > 
> > How may i recognize which method to use (EndWindow() vs EndDialog()) for closing windows stored in an array : {ownd1, ownd2, ...} ? Which property of the object informs about proper method ?
> > Of course i may store the information in an array : {{ownd1, true}, {ownd2, false}}, but it is trivial.
> > 
> > Thanks
> > Krystian
> >

[toc] | [prev] | [standalone]


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


csiph-web