smallbasic - 是否可以同时打开 Textwindow 和 Graphicwindow?
问题描述
我是韩国高中生。我做了一个关于韩语拼写规则的游戏。我想要的程序是.. [如果您选择正确答案,图形窗口将显示下一个问题,文本窗口将显示“干得好。”] 不可能吗?
我想添加我的代码。不幸的是,我不知道如何添加代码。
解决方案
是的,这绝对是可能的。只需使用 TextWindow.WriteLine 随时显示 Textwindow。
showButton = Controls.AddButton("Show", 20, 20)
Controls.ButtonClicked = onButtonClicked
Sub onButtonClicked
if Controls.LastClickedButton = showButton Then
TextWindow.WriteLine("Button Clicked!")
Shapes.Move(Shapes.AddText("Button Clicked!"), 20,50)
EndIf
EndSub
推荐阅读
- selenium - 如何在从其前一个 web 元素下方获取值后单击复选框
- c++ - 从静态函数轻松访问非静态成员
- java - 套接字写入与磁盘写入的性能
- html - CSS背景图像不适用于Wordpress
- javascript - Javascript RegExp 被解释为不同于字符串与数据属性
- node.js - Nodejs 的 documentdb-q-promises 中的多个查询
- kendo-mvvm - Kendo MVVM 与原始值和事件数组绑定
- php - PHP / 从数组中提取导航
- crashlytics - Fabric:Crashlytics 上传带有崩溃 android 的墓碑?
- excel - 删除和重新上传数据表而没有引用有 #REF 问题 [Excel]