Class: Roebe::Rundll32

Inherits:
Object show all
Defined in:
lib/roebe/gui/libui/rundll32/rundll32.rb

Instance Method Summary collapse

Constructor Details

#initializeRundll32

#

initialize

#


48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/roebe/gui/libui/rundll32/rundll32.rb', line 48

def initialize
  window = UI.main_window('A simple grid-example', 1200, 200, 15)
  
  grid = ui_grid
  entry1  = ui_entry(
    'rundll32 mshtml.dll,PrintHTML "A title for my document", "C:\temp\map.html"'
  )
  button1 = ui_button('Run the above command')
  button1.on_clicked {
    esystem entry1.text?
  }
  UI.grid_append(grid, entry1, 0, 0, 2, 1, 0, 0, 1, 0)
  UI.grid_append(grid, text('(Placeholder 1)'), 2, 0, 1, 1, 0, 0, 1, 0)

  UI.grid_append(grid, button1, 0, 1, 2, 1, 0, 0, 1, 0)
  UI.grid_append(grid, text('(Placeholder 2)'), 2, 1, 1, 1, 0, 0, 1, 0)

  grid.is_padded

  vbox = ui_vbox
  vbox.add(grid, 1)

  window.child = vbox
  window.intelligent_exit
end

Instance Method Details

#esystem(i) ⇒ Object

#

esystem

#


77
78
79
80
81
82
83
# File 'lib/roebe/gui/libui/rundll32/rundll32.rb', line 77

def esystem(i)
  e 'The following command will be run:'
  e
  e i
  e
  system i
end