Print Page | Close Window

Best way to enable/disable panel items?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Task Panel
Forum Description: Topics Related to Codejock Task Panel
URL: http://forum.codejock.com/forum_posts.asp?TID=10857
Printed Date: 29 April 2024 at 7:55am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Best way to enable/disable panel items?
Posted By: mgampi
Subject: Best way to enable/disable panel items?
Date Posted: 01 June 2008 at 3:32am
Hi;
Does anyone know, whats the best way to enable/disable task panel items according to the current GUI state. Something similar to the ON_UPDATE_COMMAND_UI() message system?
Best for me would be the system of OnUpdateXXX handlers.


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



Replies:
Posted By: mgampi
Date Posted: 01 June 2008 at 8:51am

Hi;
Sometimes it's better to look at the samples first!

I found in TaskPanel sample file UITaskPanel.cpp what I was looking for, but the command itself still has to be handled in XTPWM_TASKPANEL_NOTIFY message handler. It would be fine and better maintainable if the command (item click) could also be handled by ON_COMMAND() message handlers.

-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



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