search for: copy_from_bitmap

Displaying 3 results from an estimated 3 matches for "copy_from_bitmap".

2007 Jan 05
0
[830] trunk/wxruby2/lib/wx/classes/icon.rb: Raise exception if bad icon is specified (eg incorrect file path)
...lar, a non-existent file - is given to the + # constructor. It raisees an error if no data has been set to the icon. + wx_init = self.instance_method(:initialize) + define_method(:initialize) do | *args | + wx_init.bind(self).call(*args) + + # Zero-argument form allowed, for use with later copy_from_bitmap + if args.length.nonzero? and not ok + Kernel.raise ArgumentError, "Invalid icon specified: #{args.inspect}" + end + end + +end </ins></span></pre> </div> </div> </body> </html>
2007 Jan 06
0
[834] trunk/wxruby2/lib/wx/classes/icon.rb: Simpler test for non-existent icon files
...er </ins><span class="cx"> wx_init = self.instance_method(:initialize) </span><span class="cx"> define_method(:initialize) do | *args | </span><del>- wx_init.bind(self).call(*args) - - # Zero-argument form allowed, for use with later copy_from_bitmap - if args.length.nonzero? and not ok - Kernel.raise ArgumentError, "Invalid icon specified: #{args.inspect}" </del><ins>+ if args[0].kind_of? String + if not File.exist?( File.expand_path(args[0]) ) + Kernel.raise(ArgumentError, "Icon file does not...
2007 Jul 25
11
taskbaricon
Salut alex, j''ai un petit souci. quand j''utilise "demotaskbaricon" avec traducteur-wxruby, que j''ouvre mon application(donc l''icone apparaƮt dans la barre de lancement rapide) et que je ferme mon application, l''icone disparaƮt tout de suite. Mais quand je l''utilise avec l''exemple Wizard et que je ferme mon application