From: Jean R. <jea...@fr...> - 2011-03-22 19:14:51
|
Hello. Also I started to use Fox more than twelve years ago, I almost stopped writing code with it when I changed my job a few years ago. I am back to it now and I have a difficulty with adding dynamically menu commands. In a command from a menu, the tool read a file of some kind than includes items that I want to put as menu commands. My code (in a loop) is : FXMenuCommand* elt = *new*FXMenuCommand(paramsmenu,varnames[i],NULL,*this*,/ID_SHOW/); then I add some userData to the menu command. Strangly - for me - the menu is somehow updated, as the size (mainly the height) of the drop-down window is increased according to the number od added elements. But the command itself never shows and it is impossible to trigger it. What did I miss ? Best regards, Jean Rébillat. |