Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox click - how to prevent changing the value?
Message
From
09/07/2010 11:46:53
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01471953
Message ID:
01472007
Views:
40
>>>>>>You can also NODEFAULT in the MouseDown()
>>>>>
>>>>>Do I need to call DODEFAULT otherwise? It does prevent the click, but doesn't seem to allow it if condition met.
>>>>
>>>>
>>>>If (I do not want the click to happen )
>>>>   NODEFAULT
>>>>  return
>>>>endif
>>>>
>>>
>>>Doesn't work.
>>>
>>>It prevents the click even if I want it to happen.
>>
>>
>>Then don't NODEFAULT when you do want the click to happen
>
>Greg,
>
>Do you think I'm crazy? I sure only do NODEFAULT when I don't want it to happen. But the point is, it doesn't work.
>
>To make sure I put
>
>
>
>LPARAMETERS nButton, nShift, nXCoord, nYCoord
>this.AddProperty('lOkToProceed',.t.) 
>IF thisform.lMadeChanges and thisform.AskToSave() = 2
>   =MESSAGEBOX('Here')
>   this.lOkToProceed = .f.
>   NODEFAULT
>   RETURN 
>ENDIF    
>
>
>The click is ignored in both cases (here and not here).


Take out ' thisform.AskToSave() = 2' and see whether that solves the problem

First asking a question thisform.AskToSave() which involves another mouseclick seems a long time before NODEFAULT

As to the question. I wonder
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform