Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container in grid not refreshing properly
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00672552
Message ID:
00673097
Views:
19
Hi all,

I ended up putting the following code in the container's refresh() to make it setfocus to each control. This does the trick for now. I guess containers in grids are asking for workarounds (kludges?)

* Briefly setfocus to each control to make refresh work in grid
IF TYPE('this.ActiveControl.name') = "C"
loActiveControl = this.ActiveControl && original control with focus
FOR i = 1 TO this.ControlCount
IF UPPER(this.Controls(i).baseclass) <> "LABEL"
this.Controls(i).setfocus()
endif
ENDFOR
loActiveControl.setfocus() && reset to original control
endif
DODEFAULT()
Larry Tucker
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform