搜索资源列表
HotCursor
- VC++定义光标热区,或者说是规定区域内的鼠标样式,演示效果如上图,在图中的图片位置,鼠标放上后的样式与其它区域是不同的,程序中还配制有一个Hot Botton按钮-VC++ definition of the cursor hot spot, or to require the region of the mouse style of presentation effect the image above, the map image position, the mouse placed af
95
- 编程思路:本练习因为要实现华容道游戏中人物的构造,所以首先要生成表示人物的矩形块,这是通过语句Rectangle rect=null实例化Rectangle类,然后在People类的构造函数里通过语句rect=new Rectangle(x,y,w,h)实现有戏中人物的构造。然后因为要实现人机交互的效果,所以要响应当前光标的焦点事件,通过public void focusGained(FocusEvent e)函数得到焦点,通过public void focusLost(FocusEvent e
97
- 编程思路:首先,本练习因为要制作抓不住的方块的实例,所以首先要制作界面中的方块,先通过Graphics类的对象函数g.setColor(Color.red)设置方块的颜色为红色,然后通过语句g.drawRect(0, 0, size().width - 1, size().height - 1)和g.drawRect(mx, my, (size().width/10) - 1, (size().height/10) - 1)绘制出两个矩形,这样就完成了方块的制作。然后,为了实现“抓不住方块”的效
