Application

final
class Application {
enum ZOMBIE_PROP;
enum _compat;
DflCompat _compat;
DWORD tlsHook;
enum short FIRST_MENU_ID;
enum short END_MENU_ID;
enum ushort FIRST_CTRL_ID;
enum ushort LAST_CTRL_ID;
ushort prevMenuID;
uint nmenus;
Menu* menus;
}

Members

Properties

autoCollect
bool autoCollect [@property setter]
bool autoCollect [@property getter]
executablePath
Dstring executablePath [@property getter]

Path of the executable including its file name.

messageLoop
bool messageLoop [@property getter]
resources
Resources resources [@property getter]
startupPath
Dstring startupPath [@property getter]

Directory containing the executable.

userAppDataBasePath
Dstring userAppDataBasePath [@property getter]

Application data base directory path, usually C:\Documents and Settings\<user>\Application Data; this directory might not exist yet.

Static functions

addHotkey
void addHotkey(Keys k, void delegate(Object sender, KeyEventArgs ea) dg)
addMessageFilter
void addMessageFilter(IMessageFilter mf)
doEvents
bool doEvents()
bool doEvents(uint msDelay)

Process all messages in the message queue. Returns false if the application should exit.

enableVisualStyles
void enableVisualStyles()
exit
void exit()
exitThread
void exitThread()

Exit the thread's message loop and return from run.

getInstance
HINSTANCE getInstance()
onThreadException
void onThreadException(DThrowable e)
removeHotkey
void removeHotkey(Keys k, void delegate(Object sender, KeyEventArgs ea) dg)
removeHotkey
void removeHotkey(Keys k)
removeMessageFilter
void removeMessageFilter(IMessageFilter mf)
run
void run()
void run(void delegate() whileIdle)
void run(ApplicationContext appcon)
void run(ApplicationContext appcon, void delegate() whileIdle)
void run(Form mainForm, void delegate() whileIdle)
void run(Form mainForm)

Run the application.

setInstance
void setInstance(HINSTANCE inst)
showDefaultExceptionDialog
bool showDefaultExceptionDialog(Object e)
waitForEvent
void waitForEvent()

Static variables

hotkeys
HotkeyRegister hotkeys;

helper

idle
Event!(Object, EventArgs) idle;
threadException
Event!(Object, ThreadExceptionEventArgs) threadException;
threadExit
Event!(Object, EventArgs) threadExit;

Structs

HotkeyRegister
struct HotkeyRegister

Meta