Location:
Search - 用键盘控制光标的程序
Search list
Description: 1)屏幕保护程序运行时,鼠标光标被自动隐藏,在程序结束时,光标显示。2)当单击、移动鼠标或按下键盘时,屏幕保护结束,回到正常操作状态。为了实现这些特性,在编写VB应用程序时,可以采用如下方法: 1、改变窗体属性通常VB应用程序的窗体都采用有边框的窗体外观,但作为屏幕保护程序,应设置窗体为无边框,且为最大化。 2、隐藏及显示鼠标光标在Visual Basic应用程序中隐藏及显示鼠标光标需要运用Windows的API函数,该函数名为ShowCursor。当用参数值True调用时显示鼠标光标,当用参数值False调用时,鼠标光标自动隐藏。 3、检测鼠标移动VB中有一个检测鼠标移动的对象事件MouseMove事件。MouseMove事件通常在应用程序启动时就会触发,有时在鼠标并未移动的情况下,MouseMove事件仍有可能被触发。因此如果在程序中直接用MouseMove事件检测鼠标是否发生了移动,并不能正确反映鼠标的移动状况。应该在MouseMove事件中编写代码加以控制。 -1) screen saver running, the mouse cursor automatically hidden, at the end of the procedure, the cursor display. 2) When the click, move the mouse or press the keyboard, the screen ends and return to normal operating status. To achieve these characteristics, in the preparation of VB applications, can be used as follows : a change forms usually attribute the VB application forms have adopted a frame of the window appearance, but as screen protection procedures should be provided to non-Window frame, and as a maximum. 2, hide and display the mouse cursor in Visual Basic Application Program hide and display the mouse cursor need to use Windows API function which is called ShowCursor. When using parameters True called to show the mouse cursor, using parameter values False call, the mouse curso
Platform: |
Size: 2514 |
Author: 田欣 |
Hits:
Description: 用键盘控制光标的程序,相当实用.具体操作请看文件包.
Platform: |
Size: 20731 |
Author: zhong163game@163.com |
Hits:
Description: 1)屏幕保护程序运行时,鼠标光标被自动隐藏,在程序结束时,光标显示。2)当单击、移动鼠标或按下键盘时,屏幕保护结束,回到正常操作状态。为了实现这些特性,在编写VB应用程序时,可以采用如下方法: 1、改变窗体属性通常VB应用程序的窗体都采用有边框的窗体外观,但作为屏幕保护程序,应设置窗体为无边框,且为最大化。 2、隐藏及显示鼠标光标在Visual Basic应用程序中隐藏及显示鼠标光标需要运用Windows的API函数,该函数名为ShowCursor。当用参数值True调用时显示鼠标光标,当用参数值False调用时,鼠标光标自动隐藏。 3、检测鼠标移动VB中有一个检测鼠标移动的对象事件MouseMove事件。MouseMove事件通常在应用程序启动时就会触发,有时在鼠标并未移动的情况下,MouseMove事件仍有可能被触发。因此如果在程序中直接用MouseMove事件检测鼠标是否发生了移动,并不能正确反映鼠标的移动状况。应该在MouseMove事件中编写代码加以控制。 -1) screen saver running, the mouse cursor automatically hidden, at the end of the procedure, the cursor display. 2) When the click, move the mouse or press the keyboard, the screen ends and return to normal operating status. To achieve these characteristics, in the preparation of VB applications, can be used as follows : a change forms usually attribute the VB application forms have adopted a frame of the window appearance, but as screen protection procedures should be provided to non-Window frame, and as a maximum. 2, hide and display the mouse cursor in Visual Basic Application Program hide and display the mouse cursor need to use Windows API function which is called ShowCursor. When using parameters True called to show the mouse cursor, using parameter values False call, the mouse curso
Platform: |
Size: 2048 |
Author: 田欣 |
Hits:
Description: 在win32控制台下用C语言实现简单贪吃蛇小程序,程序涉及链表的使用、在小黑框上如何实现光标定位和接受键盘输入。-In the win32 console Snake in C language simple small program, the program involves the use of the list, in a small black box on how to achieve the cursor position and accept keyboard input.
Platform: |
Size: 24576 |
Author: 翟守超 |
Hits:
Description: 本次实验主要是学习下opengl中光照的使用方法,opengl中的光照分为环境光,漫射光,镜面光,反射光4种,这里主要是学习环境光和漫射光的设置,同时对比下opengl中支持的几种纹理滤波方式的效果,另外也可以加入色彩融合效果。这次实验是将一个木箱纹理贴到一个立方体上,然后我们在空间屏幕正外方设置了一个光源,可以用键盘的L键来控制该光源的开启和关闭;用F键来旋转程序中用到的3种滤波方式,按下F键后,依次切换该3种方式;用PageUp键来使物体离观察者越来越远,相反,用PageDown来使物体离我们越来越近;使用向上光标键加快物体旋转的速度,向下光标键减小物体旋转的速度。
开发环境:windows+QtCreator2.5.1+Qt4.8.2-The experiment is mainly the use of light in learning under opengl, opengl light into the ambient light, diffuse light, specular light, reflected light, learning environment light and diffuse light settings while contrast under opengl in support of several on the effect of texture filtering, addition can also add color fusion effect. This experiment is a wooden texture to a cube, and then we have a light source is set in space screen positive outward, L key can use the keyboard to control the opening and closing of the light source with the F key rotation procedures used three kinds of filtering the way, press the F key, followed by switching the 3 ways PageUp key to make objects farther and farther away from the observer, on the contrary, PageDown to make objects closer and closer using the accelerating the speed of rotation of the object, the up cursor key down cursor keys to reduce the speed of rotation of the objects. Development Environment: windows+QtCreator2.5.1+Qt4.8.2
Platform: |
Size: 2189312 |
Author: wuwei |
Hits:
Description: 用键盘按键控制光标移动的程序,要保证光标的移动范围不超过边框的位置 用上下左右四个箭头实现移动-Use the keyboard cursor movement keys control procedures to ensure that the movement of the cursor position does not exceed the border with the up and down arrows four mobile
Platform: |
Size: 1024 |
Author: 张伯阳 |
Hits: