Subject: Re: a toolbar question
From: Tomas Frydrych (tomas@frydrych.uklinux.net)
Date: Wed Jan 24 2001 - 08:04:26 CST
Hi Paul,
I have found the the 'graying' machanism myself since asking that 
question; once I noticed that the Undo button got grayed when 
there was nothing to undo, it was just a question of finding it. In 
any case thanks.
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
> 
*********************************************
tomas@frydrych.net / www.frydrych.net
PGP keys:  http://www.frydrych.net/contact.html
This archive was generated by hypermail 2b25 : Wed Jan 24 2001 - 08:09:56 CST