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: 21 November 2024 at 4:22pm
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 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



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 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



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