Tuesday, 12 June 2007

EPANET Scribblings

EPANET - Browser Map allows visualisation of different variables e.g. pressure, elevation, head etc.

Data-Options-Time in browser allows you to specify simulation length. by default this is 0 in the EPANET files from the States.

Hydraulics - if unbalanced then continue.

Wednesday, 6 June 2007

Finesse Findings

GinCon_1.cpp contains code for the main gui. However no form?

This is because it exists in gincon.rc as a piece of code (i.e. non-visual).

TMainMDIClient class contains information for creating the toolbar by creating TGButton instances. Symbolic constants define the button's image and the event generated by clicking it.

Code for callback functions is in gincon.cpp and gincon.h TMainMDIApp class

void CmStu(){MessageBox(0,"Hello");};

in gincon_1.cpp put event code and function (in this case void TMainMDIClient::CmStu(void)

EV_COMMAND(CM_STU, CmStu),

Define CM_STU constant in gincon.rh

#define CM_STU 1030