Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh after checkbox in grid changes value
Message
From
10/05/2005 13:51:23
 
 
To
09/05/2005 15:08:47
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Miscellaneous
Thread ID:
01012247
Message ID:
01012516
Views:
18
Hi dragan
I also experienced the same problem and I also solve it using the keyboard macro. Ive notice that the cursor will not be updated until you lost focus
  ** Checkbox:Init
  ** This property allow to track for change
  ** You can also define it early if you have check box class 
  this.AddProperty("needChange",.f.) 		
   **Checkbox:InteractiveChange
  ** This line check if in edit mode its depends on how to trap it

   If Thisform.sjdbhandler.editmode  Or Thisform.sjdbhandler.addmode

     ** Flag if there is a change in check box.
     ** This property is created at init event

 	this.needChange=.t.

     ** Envoke LostFOcus by just simulating of pressing TAB  after clicking the checkbox
     ** I this case this will trigger the lostfocus
   
	KEYBOARD '{TAB}'
    ENDIF
     *** Checkbox:LostFocus 
 
         ** At the lost focus , check if the value change then reset the flag 
         ** and do the computation    
	 If 	This.needChange=.T.
		This.needChange=.F.
	
	       *** DO YOUR CALCULATION HERE
         
	Endif
HOpe this help.
Roses are #FF0000 Violets are #0000FF all my base are belong to you
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform