%HI_SetDynamicSearching, %HI_GetDynamicSearching functions


Function
Function %HI_SetDynamicSearching sets a dynamic searching in the Windows control List box type.

Function %HI_GetDynamicSearching returns an integer value which informs about setting of dynamic searching in Windows control List box.
Declaration
%HI_SetDynamicSearching(
   INT in refId,
   INT in param
 )
 
 INT%HI_GetDynamicSearching(
   INT in refId
 )

Parameters
refId Reference to a graphic object (reference variable).
param Parameter that can acquire these values:
0 - disables dynamic searching
1 - enables dynamic searching
2 - enables dynamic searching with restriction of contents

Description
After the dynamic searching is enabled by %HI_SetDynamicSearching, the first item which is identical to entered signs is selected in the list.
If the dynamic searching with restriction of contents is enabled, the different items become temporarily invisible. The function is applicable only for Windows control List box.

WARNING: When calling the function %HI_SetDynamicSearching, the items from the list disappear.
Return value
0 - disables dynamic searching
1 - enables dynamic searching
2 - enables dynamic searching with restriction of contents
Example
 ENTRY buttonWithOutDynSearchgin_OnClick
 %HI_SetDynamicSearching(_tList, 0)
 END tWithoutB_OnClick
 
 ENTRY buttonWithDynSearching_OnClick
 %HI_SetDynamicSearching(_tList, 1)
 END tDynamicSearchingB_OnClick
 
 ENTRY buttonWithDynSearchingRestr_OnClick
 %HI_SetDynamicSearching(_tList, 2)
 END tDynSearchingRestrB_OnClick 

Napíšte komentár