Module: WR::ModFormDesigner

Class Method Summary collapse

Methods included from ModAutoloading

included

Class Method Details

.extended(mod) ⇒ Object



1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
# File 'lib/wrb/applications/frmdesigner/fdmodules.rb', line 1377

def self.extended(mod)
  bmpdir = "#{File.dirname(__FILE__)}/controls/"
  bmpname ="#{bmpdir}#{mod.to_s.sub(/^\w+::/, '').downcase}.bmp"
  mod.module_eval "FDConfig={}"
  begin
    mod::FDConfig[:bitmap] = Bitmap.fromfile(bmpname)
  rescue
    mod::FDConfig[:bitmap] = Bitmap.fromfile(bmpdir+'default.bmp')
  end
end