Displaying 3 results from an estimated 3 matches for "get_window_style".
2007 Apr 02
2
Re: Test driving WxRuby2 apps
Apologies, I think the gem attachment may have been stripped from my
original mail, so I''ve uploaded it to rubyforge under a new ''wxextra''s
project:
http://rubyforge.org/projects/wxextras/
(direct link:
http://rubyforge.org/frs/download.php/19183/nobbie-wx-preview-0.0.1.gem)
p.
============================================================
Before I forget, thanks
2007 Apr 02
0
[939] trunk/wxsugar/lib/wx_sugar/wx_classes/window.rb: Add has_style? method, allow find_window to work even if C++ method
...INE)
+ #
+ # Note that you should at least know that the constant +style+ is
+ # applicable to self. You may get false positives if testing a widget
+ # for a style belonging to an irrelevant class, e.g. testing a
+ # Wx::TextCtrl for the WX::CB_READONLY style.
+ def has_style?(style)
+ ( get_window_style & style ).nonzero?
+ end
</ins><span class="cx"> end
</span></span></pre>
</div>
</div>
</body>
</html>
2007 Jan 05
0
[832] trunk/wxruby2/samples: Fix samples for TreeItemIds as integers, fix image size in treectrl sample
...lt;span class="cx"> Wx::OK|Wx::ICON_EXCLAMATION, self)
</span><span class="lines">@@ -1028,7 +1028,7 @@
</span><span class="cx"> def on_dump_selected(event)
</span><span class="cx"> if ( @treectrl.get_window_style & Wx::TR_MULTIPLE ) == 0
</span><span class="cx"> item_id = @treectrl.get_selection
</span><del>- if item_id.is_ok
</del><ins>+ if item_id.nonzero?
</ins><span class="cx"> Wx::log_message("<TreeI...