Experimental try to rework isPainted()

This commit is contained in:
2017-01-19 09:15:49 +01:00
committed by M. Liebmann
parent 2f24e98252
commit 26eb4d079b
6 changed files with 29 additions and 8 deletions

View File

@@ -362,10 +362,12 @@ void CComponentsHeader::enableClock(bool enable, const char* format, const char*
{
cch_cl_enable = enable;
cch_cl_format = format;
if (cch_cl_obj && cch_cl_enable)
cch_cl_obj->clear();
if (sec_format_str)
cch_cl_sec_format = sec_format_str;
cch_cl_enable_run = run;
if (!enable){
if (!cch_cl_enable){
if (cch_cl_obj){
cch_cl_enable_run = false;
removeCCItem(cch_cl_obj);
@@ -544,7 +546,7 @@ void CComponentsHeader::paint(bool do_save_bg)
initCCItems();
//paint form contents
paintForm(do_save_bg);
CComponentsForm::paint(do_save_bg);
//start clock if enabled
if (cch_cl_obj){