Navigation: ABC Library Reference > BrowseClass > BrowseClass Methods >====== UpdateWindow (update display variables to match browse) ![]() | ![]() ![]() ![]() |
UpdateWindow, VIRTUAL
The UpdateWindow method updates display variables to match the current state of the browse list.
Use ResetSort followed by UpdateWindow to refresh and redisplay your ABC BrowseBoxes. Or, use the WindowManager.Reset method.
Implementation:
The BrowseClass.UpdateWindow method calls the appropriate LocatorClass.UpdateWindow method, which ensures the locator field contains the current search value.
Example:
IF FIELD() = ?MyBrowse !focus on browse list
IF EVENT) = EVENT:NewSelection !if new selection
IF MyBrowse.TakeNewSelection() !BrowseClass object handles it
MyBrowse.SetSort(0,1) !reapply sort order
MyBrowse.UpdateBuffer !refresh file buffer from selected item
MyBrowse.UpdateWindow !update display variables (locator)
DISPLAY() !and redraw the window
END
END