Print Page | Close Window

CXTPPopupControl and SetShowDelay

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=12921
Printed Date: 09 May 2024 at 4:11am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPopupControl and SetShowDelay
Posted By: zaksoft
Subject: CXTPPopupControl and SetShowDelay
Date 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



Replies:
Posted By: Oleg
Date Posted: 15 December 2008 at 1:21am
Hi,
 
You can reset timer with
 
popup.KillTimer(TID_SHOWDELAY);
popup.SetTimer(TID_SHOWDELAY, popup.GetShowDelay(), NULL);


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net