A
Armin Roehrl
Hi,
how do I set the color and the background of a
VRStatic control?
I tried:
--
require 'vr/vruby'
require "vr/vrcontrol"
frm=VRLocalScreen.newform
def frm.construct
self.caption= "VisualuRuby Sample1"
addControl(VRStatic, "label1","This is Static",200,50,200,40)
#@label1.setcolor(RGB(0xff,0xff,0xff))
p @label1.methods.grep(/olor/)
@label1.textColor=RGB(0xff,0xff,0xff)
end
frm.create
frm.show
VRLocalScreen.messageloop
---
and get:
sample.rb:11:in `textColor=': Not in WM_PAINT event handling (StandardError)
from sample.rb:11:in `construct'
from c:/ruby/lib/ruby/site_ruby/1.8/vr/vruby.rb:508:in `create'
from sample.rb:14
Thanks for your help,
-A.
how do I set the color and the background of a
VRStatic control?
I tried:
--
require 'vr/vruby'
require "vr/vrcontrol"
frm=VRLocalScreen.newform
def frm.construct
self.caption= "VisualuRuby Sample1"
addControl(VRStatic, "label1","This is Static",200,50,200,40)
#@label1.setcolor(RGB(0xff,0xff,0xff))
p @label1.methods.grep(/olor/)
@label1.textColor=RGB(0xff,0xff,0xff)
end
frm.create
frm.show
VRLocalScreen.messageloop
---
and get:
sample.rb:11:in `textColor=': Not in WM_PAINT event handling (StandardError)
from sample.rb:11:in `construct'
from c:/ruby/lib/ruby/site_ruby/1.8/vr/vruby.rb:508:in `create'
from sample.rb:14
Thanks for your help,
-A.