17 Dec
2003
17 Dec
'03
4:48 a.m.
On Tue, 2003-12-16 at 22:35, bulia byak wrote:
We currently have no graying out in menus. Many commands, not only save, will need to grey out when they have nothing to do. This is another major UI task.
sp_action_set_sensitive() can be used to grey out or enable all menu items and buttons attached to that action.
For the save button, that might mean the SPDesktop code sets up a callback when sodipodi:modified changes, which would get the SPAction for SP_VERB_FILE_SAVE and call sp_action_set_sensitive() as appropriate.
Of course, this also requires per-SPView actions to be of any use... I guess I should go implement those now...
-mental