Method: CDK::SCREEN#popupDialog
- Defined in:
- lib/cdk/screen.rb
#popupDialog(mesg, mesg_count, buttons, button_count) ⇒ Object
This pops up a dialog box.
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 |
# File 'lib/cdk/screen.rb', line 165 def popupDialog(mesg, mesg_count, , ) # Create the dialog box. popup = CDK::DIALOG.new(self, CDK::CENTER, CDK::CENTER, mesg, mesg_count, , , Ncurses::A_REVERSE, true, true, false) # Activate the dialog box popup.draw(true) # Get the choice choice = popup.activate('') # Destroy the dialog box popup.destroy # Clean the screen. self.erase self.refresh return choice end |