Application

final
class Application {}

Members

Aliases

waitMsg
deprecated alias waitMsg = _waitMsg
Undocumented in source.

Properties

autoCollect
bool autoCollect [@property setter]
bool autoCollect [@property getter]
context
ApplicationContext context [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
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

_doEvents
bool _doEvents(bool* keep)
Undocumented in source. Be warned that the author may not have intended to support it.
_waitMsg
void _waitMsg()
Undocumented in source. Be warned that the author may not have intended to support it.
addContextMenu
void addContextMenu(ContextMenu menu)
Undocumented in source. Be warned that the author may not have intended to support it.
addHotkey
void addHotkey(Keys k, void delegate(Object sender, KeyEventArgs ea) dg)
addMenuItem
int addMenuItem(MenuItem menu)
Undocumented in source. Be warned that the author may not have intended to support it.
addMessageFilter
void addMessageFilter(IMessageFilter mf)
creatingControl
void creatingControl(Control ctrl)
Undocumented in source. Be warned that the author may not have intended to support it.
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()
getSpecialPath
Dstring getSpecialPath(Dstring name)
Undocumented in source. Be warned that the author may not have intended to support it.
lookupHwnd
Control lookupHwnd(HWND hwnd)
Undocumented in source. Be warned that the author may not have intended to support it.
lookupMenu
Menu lookupMenu(HMENU hmenu)
Undocumented in source. Be warned that the author may not have intended to support it.
lookupMenuID
MenuItem lookupMenuID(int menuID)
Undocumented in source. Be warned that the author may not have intended to support it.
onThreadException
void onThreadException(DThrowable e)
ppin
void ppin(void* p)
Undocumented in source. Be warned that the author may not have intended to support it.
punpin
void punpin(void* p)
Undocumented in source. Be warned that the author may not have intended to support it.
refCountDec
size_t refCountDec(void* p)
Undocumented in source. Be warned that the author may not have intended to support it.
refCountInc
size_t refCountInc(void* p)
Undocumented in source. Be warned that the author may not have intended to support it.
removeHotkey
void removeHotkey(Keys k, void delegate(Object sender, KeyEventArgs ea) dg)
removeHotkey
void removeHotkey(Keys k)
removeHwnd
void removeHwnd(HWND hwnd)
Undocumented in source. Be warned that the author may not have intended to support it.
removeMenu
void removeMenu(Menu menu)
Undocumented in source. Be warned that the author may not have intended to support it.
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.

setCompat
deprecated void setCompat(DflCompat dflcompat)
Undocumented in source. Be warned that the author may not have intended to support it.
setInstance
void setInstance(HINSTANCE inst)
showDefaultExceptionDialog
bool showDefaultExceptionDialog(Object e)
unzombieHwnd
void unzombieHwnd(Control c)
Undocumented in source.
waitForEvent
void waitForEvent()
zombieHwnd
void zombieHwnd(Control c)
Undocumented in source.
zombieKill
void zombieKill(Control c)
Undocumented in source.

Static variables

ZOMBIE_PROP
enum ZOMBIE_PROP;
Undocumented in source.
_compat
enum _compat;
Undocumented in source.
_compat
DflCompat _compat;
Undocumented in source.
hotkeys
HotkeyRegister hotkeys;

helper

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

Structs

HotkeyRegister
struct HotkeyRegister

Meta