MainWindow Class Reference

List of all members.

Detailed Description

A top Level window that will stop the main event cycle when it's closed.

Closing the last of the windows of class "MainWindow" will end the application.


Public Member Functions

 this (char[] title)
 Creates a new MainWindow with a title.
protected bit windowDelete (Window window, Event event)
 Executed when the user tries to close the window.
protected bit exit (int code, bit force)
 Allows the application to close and decide if it can exit.


Member Function Documentation

protected bit MainWindow.exit int  code,
bit  force
 

Allows the application to close and decide if it can exit.

Parameters:
code the code reason to exit
force if true the application must expect to be closed even against it's will
Returns:
false to refuse to exit

MainWindow.this char[]  title  ) 
 

Creates a new MainWindow with a title.

protected bit MainWindow.windowDelete Window  window,
Event  event
 

Executed when the user tries to close the window.

Returns:
true to refuse to close the window


SourceForge.net Logo DSource.org Logo digitalmars.com Logo