Print Page | Close Window

CXTPTaskDialog OnButtonClicked()

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=9149
Printed Date: 14 November 2025 at 8:14am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTaskDialog OnButtonClicked()
Posted By: terrym
Subject: CXTPTaskDialog OnButtonClicked()
Date Posted: 19 December 2007 at 1:27pm
CXTPTaskDialog OnButtonClicked(), does not seem to be called :( very strange any ideas.
 
As I need to wait for a thread to finish before our dialog closes, as this seems best place to wait until thread has completed.
 
Thanks
Terry


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



Replies:
Posted By: terrym
Date Posted: 19 December 2007 at 1:28pm
I added the button using AddButton function, just incase this was needed to be known.
 
Cheers
Terry
 


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: Oleg
Date Posted: 19 December 2007 at 2:39pm
Hi,
Show some code.


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


Posted By: terrym
Date Posted: 19 December 2007 at 7:05pm
https://forum.codejock.com/uploads/20071219_190432_CDownloadFormat.rar - uploads/20071219_190432_CDownloadFormat.rar
Please see this file as it contains the code, cant see what is wrong with it
 
Cheers
Terry


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: Oleg
Date Posted: 20 December 2007 at 1:23am
Hi,
Think its because you use ID_CANCEL. Try some id = 100


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


Posted By: terrym
Date Posted: 20 December 2007 at 4:45am
We have tried 100 and even standard buttons, this function never gets called, even from the sample app for the sendfeedbackdlg when testing vista task dialogs


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: Oleg
Date Posted: 20 December 2007 at 12:27pm

Does it mean that if you run our sample, press "Send Feedback" you don't see anything? :-(



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


Posted By: Oleg
Date Posted: 20 December 2007 at 12:28pm
Just noticed you have wrong signature of this method:
 

void CAlgoTaskDialog::OnButtonClicked(int nButtonID, BOOL& bCloseDialog)


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


Posted By: terrym
Date Posted: 20 December 2007 at 5:37pm
Ah I copied this code from the samples, please check and fix samples ;)
 
Cheers for that, Terry
 


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



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