Home > database >  Pb9.0 query results come out 30 seconds nobody operation automatically returns the query interface
Pb9.0 query results come out 30 seconds nobody operation automatically returns the query interface

Time:10-10

Pb9.0 query results come out 30 seconds nobody operation automatically return query interface as shown in figure

CodePudding user response:

In the window of the OPEN () in the event to write the timer (30)
In the window of the timer event close (this)

CodePudding user response:

Idle (30)
In the application. The idle event handling, so you don't have to call win32api get if there is a keyboard mouse action

CodePudding user response:

With reference to the second floor, seems to be forced to shut down on the ground floor

CodePudding user response:

The usefulness of the idle events of Pb and idle (N) function of usage:

http://blog.csdn.net/lijianhe043/article/details/6885336


Function of the function each time a user activity (for example, according to the keyboard, move the mouse, etc.) after reset timers, n seconds after triggers the Idle event of the application object,
Grammar Idle (n)
参数n:指定空闲时间间隔,以秒为单位,该参数的值设置为0时,停止空闲检测,不再触发应用对象的Idle事件返回值Integer,函数执行成功时返回1,此时启动定时器,如果不能启动定时器或定时器未启动而n的值指定为0时,函数返回-1,如果任何参数的值为NULL,Idle()函数返回NULL,用法利用Idle()函数,应用程序可以构造自己的屏幕保护程序,避免安全数据的泄露,当使用Idle()函数已经启动了定时器后,如果再次以非0参数调用Idle()函数,那么该函数重设时间间隔,但并不启动新的定时器,Idle()函数启动定时器后,如果在指定的时间间隔(从用户最近一次操作算起)内没有操作应用程序,那么就触发应用对象的Idle事件,在这个事件中可以编写关闭窗口,退出数据库登录等一系列代码,然后使用Restart()函数重新启动应用程序,起到保密的目的,发生下述任何情况时,系统自动重置定时器(即重新开始计时):n 用户在该应用程序的任何窗口内移动鼠标或单击鼠标(双击鼠标时首先触发单击事件)n 在该应用程序的某个窗口是当前窗口时用户按下了任意一个或多个键n 在该应用程序的窗口最小化时,用户在该应用的图标上单击鼠标或移动鼠标n 在该应用程序的窗口最小化并且该应用程序是当前应用程序(应用名称被加亮显示)时,用户按了任何按键n 可视数据窗口检索数据时引起的编辑控件(指漂浮在数据窗口当前行/列上的编辑控件)

CodePudding user response:

I didn't sleep, if only for the building of the figure, 1/f, no problem, just don't close, use the reset should be no problem, right?
Return to the original poster should be further said that picture, or remove the query results in this picture,

CodePudding user response:

The timer (30)
Close (this)
Use a combination of
  • Related