From: daz Date: 2004-02-10T04:34:59+09:00 Subject: Re: VRuby; set color and background of a text label (VRStatic) "Armin Roehrl" wrote: > Hi, > > how do I set the color and the background of a > VRStatic control? > Hi Armin, This uses vrctlcolor.rb which you should have in your vr/contrib folder. # (VRuby is for Windows only) #---------------------------- require 'vr/vruby' require 'vr/vrcontrol' require 'vr/vrhandler' # (only using- vr/contrib/vrctlcolor) class ARForm < VRForm include VRCtlColor def construct self.caption= "Example - Colored VRStatic" addControl(VRStatic, 'lab1', "Static Text\n... continued", 100,50,200,80) addCtlColor(@lab1) @lab1.setTextColor(RGB(200,0,0)) @lab1.setBkColor(RGB(255,224,208)) end end VRLocalScreen.showForm(ARForm, 0, 0, 400, 400) VRLocalScreen.messageloop #---------------------------- daz