| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1610 人关注过本帖
标题:开发一个在窗格内移动一个圆圈的图形。您应该定义一个用于显示圆的窗格, 并 ...
只看楼主 加入收藏
E_Ciri
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2018-12-20
收藏
 问题点数:0 回复次数:0 
开发一个在窗格内移动一个圆圈的图形。您应该定义一个用于显示圆的窗格, 并提供向左、向右、向上和向下移动圆的方法,
请开发一个在窗格内移动一个圆圈的图形。定义一个用于显示圆的窗格, 并提供向左、向右、向上和向下移动圆的方法。检查边界, 防止圆圈完全移出视线 (例如, 如果圆圈几乎移出右手一侧的符号, 则应从左手一侧重新进入窗格)

please develop a proagram that moves a circle inside a pane. You should define a pane for displaying the circle and provide the methods for moving the circle left, right, up, and down, as shown in the figure below. Check the boundary to prevent the circle from moving out of sight completely (for example, if the circle almost moving out of sign on the right-handed side, it should reenter into the pane from left-handed side)



[此贴子已经被作者于2018-12-20 23:03编辑过]

搜索更多相关主题的帖子: 窗格 移动 向上 方法 the 
2018-12-20 23:00
快速回复:开发一个在窗格内移动一个圆圈的图形。您应该定义一个用于显示圆的窗格 ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018209 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved