<div><br></div>What I also would like to propose is to make set-methods "chainable".<div>Currently I have to do the following:</div><div><div> style = Wx::RichTextAttr.new</div><div> style.set_font_face_name("Verdana")</div>
<div> style.set_font_size(10)</div><div>I would like to do:</div><div><div> style = Wx::RichTextAttr.new</div><div> style.set_font_face_name("Verdana").set_font_size(10)</div><div>etc.</div><div><br></div>
<div>This can be easily done by returning self object after modifying it.</div><div><br></div><div>I also would like to point that set_text_colour and set_background_colour are named in a british manner (OUR), which is fine for </div>
<div>language, but is not traditional for IT, which uses color (OR). It looks reasonable to change or at least alias this.</div><div><br></div><div>Thanks,</div><div>Kirill</div></div><br><div class="gmail_quote">2008/11/5 Kirill Likhodedov <span dir="ltr"><<a href="mailto:kirill.likhodedov@gmail.com">kirill.likhodedov@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<div><br></div><div>Sometimes I find places in WxRuby API which seem to me not quite Ruby way compatible. :) </div>
<div>I know (it's written somewhere on the wxruby site), that there is an acvity to make WxRuby more Rubish.</div>
<div>I don't feel enough confident in Ruby or WxRuby to fully participate, but I'd like to point to some places which could be improved. </div><div>Where is the best place to do it? This mailing list or bug tracker or somewhere else? :)</div>
<div><br></div><div>For example, that's what I've noticed while examining RichTextAttr#apply:</div><div>"Applies the attributes in style to the original object, but not those attributes from style that are the same as those in compareWith (if passed).</div>
<div>See also RichTextAttr#combine for a function that does almost the same but returns a new object instead of modifying the original object."<br></div><div><br></div><div>I'd mark combine as deprecated and use apply! instead, because that's what exclamation mark is for. What do you think?</div>
<div><br></div><div>Best regards,</div><div>Kirill.</div><font color="#888888"><div><br></div>
</font></blockquote></div><br></div>