[wxruby-users] Transparent line in Frame
Andreas Warberg
lists at ruby-forum.com
Mon Apr 21 10:47:05 EDT 2008
Alex Fenton wrote:
> Andreas Warberg wrote:
>> frame.evt_paint do
>> frame.paint do |dc|
>> gdc = GraphicsContext.create(dc)
>> siz = dc.size
>> h, w = siz.height, siz.width
>> #dc.draw_line(0,0,w,h)
>>
> gdc.pen = Wx::Pen.new( Wx::Colour.new(255, 0, 0, 128), 20)
>> What am I missing? :)
> It seems with GraphicsContext, you need to set some sort of pen before
> starting drawing - there is no default pen when it's first created.
>
> alex
Thanks!
--
Posted via http://www.ruby-forum.com/.
More information about the wxruby-users
mailing list