Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Trouble to check a toolbar control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Trouble to check a toolbar control

 Post Reply Post Reply
Author
Message
upeters View Drop Down
Groupie
Groupie


Joined: 31 May 2007
Location: Brazil
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote upeters Quote  Post ReplyReply Direct Link To This Post Topic: Trouble to check a toolbar control
    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...
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.125 seconds.