General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only