Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid / Screen flashing / grd.Refresh()
Message
From
11/04/2003 17:43:36
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00775704
Message ID:
00776810
Views:
9
Bob,

Thank you very much! You absolutely pointed me in the correct direction.

Within that event the following code gets execetued:

WITH THISFORM
.LabelStamp() && Show the last edit or creation stamp for the current record. If EOF, display "No Record"
.CurrentMode() && Display one of the following: View Mode, Add Mode, Edit Mode. If EOF, display an empty string.
.LabelID()
.EnableDisableButtons() && Implements Add, Edit, Save, Undo, Next and Previous buttons.
._RecordNumber =.oCurrentData.RecordNumber()
.grdList.Refresh()
ENDWITH

The .grdList.Refresh() is the culprit. However I need it because the grdLists's controlsource is a local view. I use my own customized command buttons to move the bar of the grid within the grid list. In order for my bar to appear at the proper position in the grid list I need to refresh it after I move my point in the local view.

My bar also has it's own special color defined as follows:

.SetAll("DynamicBackColor", "IIF(THISFORM._RecordNumber <> THISFORM.oCurrentData.RecordNumber(),RGB(255,255,255), RGB(0,128,0))","Column").SetAll("DynamicForeColor", "IIF(THISFORM._RecordNumber <> THISFORM.oCurrentData.RecordNumber(),RGB(0,0,0), RGB(255,255,0))","Column")

Is there anything else I may use to get the bar displayed at the appropriate position without refreshing or "flashing" the grid?

Thanks for all your help!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform