|
Home > Archive > Programming with dBASE > July 2005 > message box like functionality
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 |
message box like functionality
|
|
| Howard Mintzer 2005-07-27, 9:23 am |
| I need a control that acts like a message box to fire if a condition is
not met in a form's ongotfocus event. Unfortunately the standard message
box being in reality another form, fires the onlostfocus event and then
the ongotfocus event of the original form when the message box opens and
closed. That produces a problem for me even if i try to null out the
ongotfocus event...it still executes.
What it tried it just to have a textbox with an overlying ok button
become visible on my form. Problem is, the user can click anywhere else
on the form and basically ignore my message. How can I confine the
cursor to the pushbutton on my 'message box' so he has to read it and
proceed?
Probably something easy that I just can't see
Thanks
Howie
| |
| *Lysander* 2005-07-27, 9:23 am |
| In article <G$#qxvqkFHA.1796@news-server>, hmintzer@optonline.net=20
says...
> That produces a problem for me even if i try to null out the=20
> ongotfocus event...it still executes.
Hmmmh...
I was only today modelling such info-box into one of my libraries, using=20
nothing but the usual msgbox() and it works fine for me.
What are you doing different, besides using a more modern dBase-version?
Form.OnGotFocus =3D class::FormOnGotFocu
s
Function FormOnGotFocus
Local Info
Form.OnGotFocus =3D{;}
=20
Info =3D MsgBox("I am the form and now I got the focus")
Form.OnGotFocus =3D class::FormOnGotFocu
s
Return
=20
--=20
ciao,
Andr=E9
~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~
Deutsche dBase-Konferenz dBKon 2005 ::: 11. bis 13. November 2005
Deutschsprachige Konferenz zu dBase und anderen Datenbanken
Info: www.dbase-konferenz.de
| |
| Ken Mayer [dBVIPS] 2005-07-27, 11:23 am |
| Howard Mintzer wrote:
> I need a control that acts like a message box to fire if a condition is
> not met in a form's ongotfocus event. Unfortunately the standard message
> box being in reality another form, fires the onlostfocus event and then
> the ongotfocus event of the original form when the message box opens and
> closed. That produces a problem for me even if i try to null out the
> ongotfocus event...it still executes.
Have you tried: form.activeControl.setFocus()
??
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/GSP
http://www.goldenstag.net/dbase
|
|
|
|
|