User Tools

Site Tools


updatewindow_update_display_variables_to_match_browse_.htm
Navigation:  ABC Library Reference > BrowseClass > BrowseClass Methods >====== UpdateWindow (update display variables to match browse) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

UpdateWindow, VIRTUAL

blk2blue.jpg

The UpdateWindow method updates display variables to match the current state of the browse list.

TipBox.jpg

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

updatewindow_update_display_variables_to_match_browse_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1