CTestMenu: edd expanded sample for blinking items with syncroinized effect

Origin commit data
------------------
Commit: 2cbca9501f
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-12-19 (Mon, 19 Dec 2016)
This commit is contained in:
2016-12-19 17:21:51 +01:00
committed by vanhofen
parent d8f12fdf35
commit 85bb0e6abd
2 changed files with 5 additions and 1 deletions

View File

@@ -87,6 +87,7 @@ CTestMenu::CTestMenu()
clock = clock_r = NULL; clock = clock_r = NULL;
text_ext = NULL; text_ext = NULL;
scrollbar = NULL; scrollbar = NULL;
timer = NULL;
} }
CTestMenu::~CTestMenu() CTestMenu::~CTestMenu()
@@ -950,6 +951,8 @@ void CTestMenu::showRecords()
const int box_posX = 30; const int box_posX = 30;
const int box_posY = 300; const int box_posY = 300;
if (!timer)
timer = new CComponentsTimer(1);
if (crm->RecordingStatus()) if (crm->RecordingStatus())
{ {
@@ -1013,7 +1016,7 @@ void CTestMenu::showRecords()
for(size_t j = 0; j< images.size(); j++){ for(size_t j = 0; j< images.size(); j++){
images[j]->kill(); images[j]->kill();
images[j]->paintBlink(); images[j]->paintBlink(timer);
} }
ShowHint("Testmenu: Records", "Record test ...", 200, 30, NULL, NEUTRINO_ICON_HINT_RECORDING, CComponentsHeader::CC_BTN_EXIT); ShowHint("Testmenu: Records", "Record test ...", 200, 30, NULL, NEUTRINO_ICON_HINT_RECORDING, CComponentsHeader::CC_BTN_EXIT);

View File

@@ -54,6 +54,7 @@ class CTestMenu : public CMenuTarget
CComponentsChannelLogo* chnl_pic; CComponentsChannelLogo* chnl_pic;
CComponentsExtTextForm* text_ext; CComponentsExtTextForm* text_ext;
CComponentsScrollBar* scrollbar; CComponentsScrollBar* scrollbar;
CComponentsTimer *timer;
int width, selected; int width, selected;
int showTestMenu(); int showTestMenu();