Re: a toolbar question


Subject: Re: a toolbar question
From: Paul Rohr (paul@abisource.com)
Date: Tue Jan 23 2001 - 17:44:21 CST


At 08:00 AM 12/21/00 +1100, Martin Sevior wrote:
>On Wed, 20 Dec 2000, Tomas Frydrych wrote:
>> Is there any generic mechanism in place for disabling toolbar
>> buttons on the fly?
>
>I don't think so. It could be done though. I recall MS Word 2000 disables
>toolbar buttons.

Tomas,

I'm not sure I understand your question. Are you familiar with the
following XP code?

  abi/src/wp/ap/xp/ap_Toolbar_ActionSet.cpp
  abi/src/wp/ap/xp/ap_Toolbar_Functions.cpp

The first file lays out a table which indicates which types of changes to
the document (AV_CHG_*) affect the state of a given toolbar item.

Those changes in turn trigger logic in the second file, which set the
toolbar item state accordingly. For example, setting EV_TIS_Gray tells
platform code to disable the item via the EV_TIS_ShouldBeGray() macro:

  abi/src/af/ev/xp/ev_Toolbar_Actions.h
  abi/src/af/ev/<platform>/ev_<os>Toolbar.cpp

Does that answer your question?

Paul



This archive was generated by hypermail 2b25 : Tue Jan 23 2001 - 18:33:45 CST