Home > Archive > Programming with dBASE > April 2006 > _app.framewin.onClose event









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author _app.framewin.onClose event
rafa

2006-03-29, 11:24 am

Hi,

is there a _app.framewin.onClose event in PLUS?
I'd like to be ableto capture when the app "X" button is clicked in my
mdi application.


I could use a invisibkle form and call the canClose event, but
Idliekto know if there is a better way to do it

Thanks!

Rafa
Ken Mayer [dBVIPS]

2006-03-29, 11:24 am

rafa wrote:
> Hi,
>
> is there a _app.framewin.onClose event in PLUS?
> I'd like to be ableto capture when the app "X" button is clicked in my
> mdi application.
>
>
> I could use a invisibkle form and call the canClose event, but
> Idliekto know if there is a better way to do it


Not at this time.

Ken

--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/dbase/dBASEBook.htm
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
rafa

2006-03-30, 3:24 am

thanks Ken,
You answered the same 6 years ago :-)

Rafa

On Wed, 29 Mar 2006 09:12:21 -0800, "Ken Mayer [dBVIPS]"
< dbase@_nospam_golden
stag.net> wrote:

>rafa wrote:
>
>Not at this time.
>
>Ken

bigMike

2006-03-30, 3:24 am

Ken's a cool dude - and he doesn't get to make the decision as to what gets
done, I'm sure you are aware of this. :-)

bigMike



rafa

2006-03-30, 3:24 am

Hi Mike,
Yes,I know he is a very cool dude, It would be great if he was the
one to make the decisions :-)

Rafa
On Wed, 29 Mar 2006 19:19:38 -0800, "bigMike" <bigmikeaa@hotmail.com>
wrote:

>Ken's a cool dude - and he doesn't get to make the decision as to what gets
>done, I'm sure you are aware of this. :-)
>
>bigMike
>
>

Ken Mayer [dBVIPS]

2006-03-30, 9:24 am

rafa wrote:
> Hi Mike,
> Yes,I know he is a very cool dude, It would be great if he was the
> one to make the decisions :-)


Heh. Well, thanks for the compliment, which I had more influence on the
software myself ... (and a canClose and/or onClose event for the _app
object would be useful ...)

Ken

--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/dbase/dBASEBook.htm
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
Paul Van House

2006-03-30, 11:24 am

In article < qqdl22lnj63r01ptq92m
i3mge026i5atte@4ax.com>, faxrafa4
@hotmail.com says...
> Hi,
>
> is there a _app.framewin.onClose event in PLUS?



Even though there is not such an event for _app.framewin, any open
form's CanClose event will still fire when the dreaded "X" is clicked.
But, alas, I don't think there's a way to tell if the CanClose was fired
by the user closing the form...or by the user closing the application
with the "X".
I don't believe the form's OnClose events fire in that situation.

--
Paul Van House
remove ".removeme" for e-mail replies
Radio/TV Software and Baseball Stat Software:
http://www.binxsoftware.com
Family Home Page: http://vanhouse.binxsoftware.com
Church Home Page: http://www.ashfordumc.org
bigMike

2006-03-30, 1:24 pm

Well, when the door closes over here, try a door over there. If I
understand you, you want to know if an "X" close to a previous form was
done. Why not do it the other way around then; place an _app.variable (just
as an example here) in the form.Close() button code that will be true if
they use the button but will remain false if they didn't use it and pressed
the "X". This will tell you the same thing, yes?? ;-)

Besides, if you don't want them to use the "X", I think I saw code about
turning off the "X" on a form - won't that prevent it for you?? Are you
looking to prevent the user from exiting that way or do you just want to
know if they used the "X"? If the latter, than use my method above.

bigMike
Sometimes I'm just sneaky.....

"rafa" <faxrafa4@hotmail.com> wrote in message
news:qqdl22lnj63r01p
tq92mi3mge026i5atte@
4ax.com...
> Hi,
>
> is there a _app.framewin.onClose event in PLUS?
> I'd like to be ableto capture when the app "X" button is clicked in my
> mdi application.
>
>
> I could use a invisibkle form and call the canClose event, but
> Idliekto know if there is a better way to do it
>
> Thanks!
>
> Rafa
>




bigMike

2006-03-30, 1:24 pm

P.S.: In case you were referring to the closing of the program, the last
form, returning to Windows, then the previous answer won't work. However, I
am undaunted. Create a system variable or even a small text file with the
dateTime information or whatever. If they closed normally, it will exist -
if they used the "X" then it won't. When the program starts up it can erase
the text file so you won't have an older one around.

bigMike


"bigMike" <bigmikeaa@hotmail.com> wrote in message
news:Rx4xUTCVGHA.1180@news-server...
> Well, when the door closes over here, try a door over there. If I
> understand you, you want to know if an "X" close to a previous form was
> done. Why not do it the other way around then; place an _app.variable

(just

> as an example here) in the form.Close() button code that will be true if
> they use the button but will remain false if they didn't use it and

pressed
> the "X". This will tell you the same thing, yes?? ;-)
>
> Besides, if you don't want them to use the "X", I think I saw code about
> turning off the "X" on a form - won't that prevent it for you?? Are you
> looking to prevent the user from exiting that way or do you just want to
> know if they used the "X"? If the latter, than use my method above.
>
> bigMike
> Sometimes I'm just sneaky.....
>
> "rafa" <faxrafa4@hotmail.com> wrote in message
> news:qqdl22lnj63r01p
tq92mi3mge026i5atte@
4ax.com...
>
>
>
>




Silvio Genco

2006-03-30, 8:24 pm

You can use too a .mem file where store the variable and when the program
start check the variable stored in the mem file.

something like:
//
if file("myvariable.mem")
restore from myvariable.mem additive
if xpush = true // last exit with pushbutton procedure
// your code
else
// your code
endif
endif
xpush = false
save all like xpush* to myvariable.mem
//
function close_button
xpush = true
save all like xpush* to myvariable.mem
form.close()
return

Silvio

"bigMike" <bigmikeaa@hotmail.com> ha scritto nel messaggio
news:CpqSYWCVGHA.1548@news-server...
> P.S.: In case you were referring to the closing of the program, the last
> form, returning to Windows, then the previous answer won't work. However,

I
> am undaunted. Create a system variable or even a small text file with the
> dateTime information or whatever. If they closed normally, it will

exist -
> if they used the "X" then it won't. When the program starts up it can

erase

> the text file so you won't have an older one around.
>
> bigMike
>
>
> "bigMike" <bigmikeaa@hotmail.com> wrote in message
> news:Rx4xUTCVGHA.1180@news-server...
> (just
> pressed
>
>
>



Mervyn Bick

2006-03-31, 3:24 am

On Thu, 30 Mar 2006 23:01:54 +0200, Silvio Genco <nospamgenco@medidea.it>
wrote:

> You can use too a .mem file where store the variable and when the program
> start check the variable stored in the mem file.
>
> something like:

........
> save all like xpush* to myvariable.mem



I haven't tried it myself so this could be incorrect but I seem to
remember a thread a while back where it was reported that the "save all
like" command didn't work properly.

Mervyn.
Silvio Genco

2006-03-31, 7:25 am

I never had problem with "save all like" in DBP 2.6. I use it in my
application to store some information like license keys, buyer or other
variables that I consider not relevant to store in a table.

Silvio

program[color=darkre
d]
> .......
>
>
> I haven't tried it myself so this could be incorrect but I seem to
> remember a thread a while back where it was reported that the "save all
> like" command didn't work properly.
>
> Mervyn.




Mervyn Bick

2006-03-31, 9:24 am

On Fri, 31 Mar 2006 12:03:02 +0200, Silvio Genco <nospamgenco@medidea.it>
wrote:

> I never had problem with "save all like" in DBP 2.6. I use it in my
> application to store some information like license keys, buyer or other
> variables that I consider not relevant to store in a table.



If it works, that's fine. It's what it is supposed to do! <g> As I said,
I remeber somene having trouble with it but it may not have been dBase
Plus 2.6.

Mervyn.
bigMike

2006-03-31, 8:23 pm

I remember somebody mentioning that .mem files were not supported any more
somewhere aways back, but obviously they are.

bigMike




Ken Mayer [dBVIPS]

2006-04-03, 8:23 pm

bigMike wrote:
> I remember somebody mentioning that .mem files were not supported any more
> somewhere aways back, but obviously they are.


I think you mis-remembered. My understanding is that older MEM files are
not necessarily supported or read properly with the 32 bit product
(i.e., 7.0 through to current), but you should be able to read/write mem
files in the current product. (there are better ways to do things, but ...)

Ken

--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/dbase/dBASEBook.htm
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
bigMike

2006-04-04, 3:23 am

"Ken Mayer [dBVIPS]"
> I think you mis-remembered.


Hey, at my age I'm glad to remember who the hell I am - I think :-$

bigMike
;-)




Mervyn Bick

2006-04-04, 3:23 am

On Tue, 04 Apr 2006 05:04:35 +0200, bigMike <bigmikeaa@hotmail.com> wrote:

> "Ken Mayer [dBVIPS]"
>
> Hey, at my age I'm glad to remember who the hell I am - I think :-$


In my case, long term planning is limited to what to do this afternoon.
And I no longer buy green bananas. <g>

Mervyn.
bigMike

2006-04-04, 11:24 am

"Mervyn Bick"
> In my case, long term planning is limited to what to do this afternoon.
> And I no longer buy green bananas. <g>


Oh, I'll eat those just to make sure that some of my body parts still work,
or at least still react. Nothing like a roto-rooter nooner. :-))

bigMike




Ken Mayer [dBVIPS]

2006-04-04, 8:23 pm

bigMike wrote:
> "Ken Mayer [dBVIPS]"
>
>
>
> Hey, at my age I'm glad to remember who the hell I am - I think :-$
>


Tell me about it. I am currently in WI teaching three students some
dBASE programming, and in the middle of showing something and discussing
a property, I completely spaced on the name of it. Sheesh. <g>

Oh well ...

--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/dbase/dBASEBook.htm
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
bigMike

2006-04-05, 1:27 pm

We call those ..... "senior moments" ;-)

bigMike




Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com