After inserting a row in the PB8 FreeForm-style datawindow, the cursor is unable to scroll.

Issue Description:
After inserting a row in a DataWindow using FreeForm style, it was noticed that the cursor cannot scroll.

Solution:

  1. DesignateTransObject
  2. Get

Example code:

// 设置事务对象
dw_1.SetTransObject(SQLCA)
// 重新获取数据
dw_1.Retrieve()
  1. Move to specified row.

Sample code:

// 获取插入行索引
long ll_insert_row
ll_insert_row = dw_1.InsertRow(0)

// 将光标滚动到插入行
dw_1.ScrollToRow(ll_insert_row)
  1. Choose a row
  2. Move the view to a specific row.

Example code:

// 获取插入行索引
long ll_insert_row
ll_insert_row = dw_1.InsertRow(0)

// 选择插入行
dw_1.SelectRow(ll_insert_row, TRUE)

// 将光标滚动到选择的行
dw_1.ScrollToRow(ll_insert_row)

The above are some common methods to solve the issue of the cursor not scrolling. Choose the appropriate method based on the specific situation.

Leave a Reply 0

Your email address will not be published. Required fields are marked *