#!ruby # -*- mode: ruby; coding: utf-8 -*- # Last updated: <2016/01/12 02:07:08 +0900> require_relative './lib/dxrubyws' require_relative './lib/standardgui' # ウインドウを生成 window = WS::WSWindow.new(100,100,300,200,"TutorialWindow") # 画面に登録 WS.desktop.add_control(window) # ボタンを生成 button = WS::WSButton.new(10,10,100,20,"TutorialButton") # ウインドウ(のクライアント領域)に登録 window.client.add_control(button) Window.loop do WS.update end