From:
<dom...@in...> - 2007-11-30 20:52:31
|
Jean-François Lemaire a écrit : > Hello there, > > I'm working on an app that loads a menu tree with MenuBar() and I've > just noticed that I can't modify the state of menu items, either with > menu_ienable() or directly by modifying their ob_state bit. > > yes, for that, you have to use MenuIcheck() / MenuTnormal() > So, out of curiosity, event though the WinDom doc says never to use > menu_bar(), I did use it and there you have it, I can now modify menu > items on the fly. > > > However, my app was killed by XaAES when quitting, which proves the doc > right. Back to MenuBar(), then. > I think it is still possible to use menu_bar() but you loose the capability to bind an menu event ... The crash is strange. menu_bar() is not necessarly the origin of the problem. > JFL > -- Dominique Béréziat EPI CLIME - Inria Paris-Rocquencourt tel : +33 1 39 63 58 65 fax : +33 1 39 63 58 80 |