开发者

f.pos undefined?

simplified version of my problem

    require 'wx'
Wx::App.run do
  f = Wx::Frame.new nil
  f.title= 'the potlee'
  f.size= Wx::Size.new( 200 , 500)
  f.pos= Wx::point.new(50,50)
  f.show
end

i get this error

`method_missing': undefined method `pos=' for #<Wx::Frame:0x207d020>

how can i set the size on the frame but not the position?

note:using the latest version of wxruby on windows(which came with its开发者_如何学C own ruby interpreter).


Should you not have a capital P for Wx::Point?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜