Skip to main content

Insufficient Memory message appears when installing Net Express 4.0

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

To use the GUI Class Library ListView object within a Dialog System screen, and to set focus on a specific ListView Item and give it the focus, users should first put the focus on the ListView itself by calling "SetInputFocus". Then they can set focus on the ListViewItem. The following code assumes that aListView is an object reference representing the ListView itself and aListViewItem is an object reference representing the particular item for users to select and set focus on. This code would be placed in the appropriate area of the control program for the ListView:

INVOKE aListView "SetInputFocus"

INVOKE aListViewItem "setSelectedWithFocus"

If you do not invoke "SetInputFocus" on the listview first, then the  listview item may appeard gray because it was selected, but does not have focus.

Resolution:

In order to use the GUI Class Library ListView object within a Dialog System screen, and to set focus on a specific ListView Item and give it the focus, users first have to place the focus on the ListView itself by calling "SetInputFocus". Then the focus is set on the ListViewItem. The following code assumes that aListView is an object reference representing the ListView itself and aListViewItem is an object reference representing the particular item that you want to select and set focus on. This code would be placed in the appropriate area of the control program for the ListView:

INVOKE aListView "SetInputFocus"

INVOKE aListViewItem "setSelectedWithFocus"

If users do not invoke "SetInputFocus" on the listview first, then the  listview item may appeard gray because it was selected, but does not have focus.

Old KB# 5321

0 replies

Be the first to reply!