Prev: multiple language support: dialog-boxes
Next: https://accountservices.msn.com/EmailPage.srf?emailid=5d4c1ef525bf
From: David Webber on 19 Jun 2010 15:56 After initial frustrations indicated by recent messages, I am now getting on with these classes relatively cordially. The user of my program can add or remove buttons to/from the CMFCToolBar(s), and menu items to/from the CMFCMenuBar - all beautifully customisable. The program knows about the available commands and they can be added to any toolbar or menu. And new custom tool bars can be added by the user. It's all fiendishly clever. However: my questions (today) are as follows: 1. The MFC Customise dialogue, from which one can drag commands to toolbars and menus, only list commands which have a menu item. To get ALL commands on this list, it looks like the program would have to have a menu item for every one, and, at initial launch, hide the ones which are not wanted by default on the menu. Is this what one is supposed to do? 2. Only commands which have a toolbar button have an icon (and this also appears on the menu item if there is one). If commands with no icon are added to toolbars, you just get the text of the menu item. I'd rather have an icon. To get one, it looks like the program would have to have ALL commands on toolbars, and hide the buttons it doesn't want by default at the initial launch. Is this what one is supposed to do? 3. In summary: I currently have getting on for 200 commands: some on menus, some on buttons, some on both, and some on neither (which can have keyboard shortcuts and which can be inserted in macros). To get full flexibility of customisation, it seems I have to have menu AND toolbar access to ALL commands, and hide the ones I don't want to see initially. Now I don't want to see all of these appearing in existing toolbars and menus (though some will fit), so a hidden menu and toolbar consisting of 'Extras' may be indicated. In particular that might mean a tool bar of 100 buttons which in the normal way of things one would never want to see! Is this reasonable? Or is there a better way which I have missed? Dave -- David Webber Mozart Music Software http://www.mozart.co.uk For discussion and support see http://www.mozart.co.uk/mozartists/mailinglist.htm |