Print Page | Close Window

Trouble to check a toolbar control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=8348
Printed Date: 23 November 2024 at 7:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Trouble to check a toolbar control
Posted By: upeters
Subject: Trouble to check a toolbar control
Date Posted: 08 October 2007 at 1:24pm
Hello,

I have a search filter, which can be applied on a certain grid on the form. If I have the filter active (and therefore not every available record is shown in the grid), I want to document this somehow to the user, checking the filter button on the toolbar. Clicking the checked button should reset the filter, and display again every record in the grid. Clink the (now unchecked) filter button once more, it should again be possible to define a new filter.

It works almost as intended, but tests show me that when I activate the filter dialog with the keyboard shortcut instead of clicking the toolbar button, the "checked" property does not stick, and the button remains as if no filter was applied to the grid.

Debugging the CommandBars_Execute event handler, I see that both times (activating the filter with a click or pressing the shortcut), the same line eith Control.Checked = True is executed, but only when using the mouse it actually works.

What am I missing? Thank you...



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