First, add the following pane to the string table on the resourse tab, for example, ids_timer clock.
Second, add the identifier to the mainframe app file.
For example:
Static uint indicators [] =
{
Id_separator, // status line indicator
// Id_indicator_caps,
// Id_indicator_num,
// Id_indicator_scrl,
Ids_timer,
};
Again: add the following to the mainframe: oncreate () function:Code:
Ctime T = ctime: getcurrenttime ();
Cstring STR = T. Format ("% H: % m: % s ");
Cclientdc DC (this );
Csize SZ = Dc. gettextextent (STR );
Int Index = 0;
Index = m_wndstatusbar.commandtoindex (ids_timer );
M_wndstatusbar.setpaneinfo (index, ids_timer, sbps_normal, Sz. CX );
M_wndstatusbar.setpanetext (index, STR );
Add the following code to the ontimer () function:
Status Bar programming
ctime T = ctime: getcurrenttime ();
cstring STR = T. format ("% H: % m: % s");
cclientdc (this);
csize SZ = dc. gettextextent (STR);
m_wndstatusbar.setpaneinfo (1, ids_timer, sbps_normal, Sz. CX);
m_wndstatusbar.setpanetext (1, STR);