|
Post by account_disabled on Mar 19, 2024 2:02:39 GMT -5
现在转到语言选项卡并选择据我所知这是语法突出显示然后在工具选项卡中选择板将打开一个附加窗口。现在你不需要这个窗口但是当你构建运行应用程序时调试信息将显示在那里如果程序中有错误这将帮助你如果有错误信息将显示在那里。非常方便的是在中一切都已经为编程做好了准备。现在你绝对可以开始编写程序了。包含代码主循环调用等待一个事件。十月重绘窗口。键盘处理。调用处理创建的按钮。调用我们得到按下的键的代码这里我们要做键盘处理。 获取按下按钮的代码。啊是我们创建的按钮的代码。如果单击我们创建的按钮则关闭程序。我们开始 亚美尼亚电报号码数据 重画窗口。窗口设置绘制字符串画一个按钮。注意数字这是按钮标识符。画一条线。仅举个例子。我们完成了窗户的绘制。是时候测试代码了。尝试运行该程序。最好补充一些其他代码来提升你的技能。我尝试对所有内容进行评论并希望我正确地复制了所有内容。但如果没有那么我想你可以自己改正错误。从我的视频来看一切都对我有用。正如你所看到的我在这里经常使用宏尽管我在上一篇文章中写道如果你还没有读过请阅读。 它这对于初学者来说不是很清楚。但事实上许多宏如果使用它们可以极大地简化开发。注意重要在中编译并运行您的应用程序时您可能不会得到您期望的结果重点是您必须保存代码中的更改。编译器使用磁盘中的文件并且在构建应用程序时不会自动保存更改。注意这些是系统调用您需要查看这些调用的文档并了解这些调用的作用。随着时间的推移很明显你将能够记住很多东西扔掉一些东西为自己并只使用你需要的东西。还要注意创建的按钮。它没有文字显然你必须自己在那里写文字。另外如果您对这个主题感兴趣我建议您查看并转到文件夹。
|
|