CXTPPopupControl and SetShowDelay |
Post Reply |
Author | |
zaksoft
Senior Member Joined: 05 June 2003 Location: Italy Status: Offline Points: 162 |
Post Options
Thanks(0)
Posted: 14 December 2008 at 12:11pm |
I need to show some information and I've implemented a popup using CXTPPopupControl.
When new information comes I have 2 situation:
1) GetPopupState() == xtpPopupStateClosed, I destroy the old object, create a new one, set markup, delay (15 sec) and all is fine
2) the popup is still opened, I simply update markup (to avoid flashing, sometimes new date arrives once a second)... but depending of first call to show the popup the window closes in few seconds.
In case 2 how can I reset timer ( OnShow is protected ) to let the message last the same time ?
Any suggestion ?
|
|
VS2008 SP1 - VS2010 SP1 - VS2012 - MFC MBCS Statically linked
XTP 15.3.1 Static Link --------------------------------------------------------- Davide Zaccanti - ZakSoft - www.zaksoft.com |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
You can reset timer with
popup.KillTimer(TID_SHOWDELAY);
popup.SetTimer(TID_SHOWDELAY, popup.GetShowDelay(), NULL);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |