Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: lost focus problem

$
0
0
Re: lost focus problem
FoxInCloud
Re: lost focus problem
Dec. 24, 2012
02:11 am
3OB04OV1MShow this entire thread in new window
Gratar Image based on email address
From:Thierry Nivelet (FoxInCloud)
To:Tuvia Vinitsky
We found that the offending instruction is useless ...
Please comment this instruction in aw.vcx!awForm.lostFocusInet() as follows:

MODIFYCLASS awfrm OF aw.vcx METHOD lostfocusinet*!* 24/12/12 - useless, luValue is not used in this method *!* luValue = m.toMember.Value


the .click of a commmanbutton, if when it runs loses focus, caLLS the lostfocus of the form. In the screen shots attached that is what happened. However if the form is running, I can alt-tab away from the browser and the same thing will happen.

and


hi Tuvia,

can you post some more information? e.g.
- event sent when cmd.blur() executes
- VFP debugger screenshot when erro occurs


I have a converted app with a problem and I cannot seem to trace the source.

Whenever a command button loses focus, the form.losefocusinet ends up running. This crashes, as lostfocusinet assumes that the oject being passed in is a text object or an object with a .Value property. Since command buttons do not have a .Value, hence the crash on tomember,value being set.

I hate to just change the lostfocusinet code to exclude the commandbutton base class, because this is an issue I should know what is going on.

The button and its class have no code in lostfocus.

Ideas?




-- thn (FoxInCloud)


Viewing all articles
Browse latest Browse all 10393

Trending Articles