Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPPopupControl and SetShowDelay
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPopupControl and SetShowDelay

 Post Reply Post Reply
Author
Message
zaksoft View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2003
Location: Italy
Status: Offline
Points: 162
Post Options Post Options   Thanks (0) Thanks(0)   Quote zaksoft Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPopupControl and SetShowDelay
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.