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. 22, 2012
05:53 pm
3O912BW10Show this entire thread in new window
Gratar Image based on email address
From:Tuvia Vinitsky
To:Thierry Nivelet (FoxInCloud)
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?



Viewing all articles
Browse latest Browse all 10393

Trending Articles