Thread: Nothing complicated, just...

  1. #1
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,273

    Arrow Nothing complicated, just...

    ...INTERFACES!!! (Sinister laugh, fades to silence in 10 seconds)

    (Ahem)Well, the thing is, my program currently allows the user to create both a new "project" and a new "component" via the same New command from the File menu, which opens a dialog that allows the user to select which new item they want, and a name for it. However, I keep getting this urge to instead make that New command handle new projects only and instead put a "New component" button on the toolbar and allow the user to name it via immediately editing the label of the tree view item it creates.

    Now, obviously the project is the main item (If that makes any sense ) inside which all components reside. It's the thing that's loaded and saved, and hence all the other commands on the File menu apply only to it (Open, Save, Save As). The reason why I did the dialog initially was the fact that projects and components both have a "Name" field in their types, so it seemed convenient. But the project and its components are listed in the tree view and their names can be edited there, so I'm just a little... um... undecided. Should I do the dialog, the toolbar button, both or neither (In answering neither you agree to supply an alternative, please )?

  2. #2
    Registered User sean345's Avatar
    Join Date
    Mar 2002
    Posts
    346
    The new menu item could be a popup menu that leads to your two choices: project and component. It would be something like this.

    Code:
    New->Project
         Component
    It is easy to do if you are using a menu resource.

    - Sean
    If cities were built like software is built, the first woodpecker to come along would level civilization.
    Black Frog Studios

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Complicated member objects that depend on `this`
    By drrngrvy in forum C++ Programming
    Replies: 3
    Last Post: 11-12-2006, 09:48 PM
  2. Reading large complicated data files
    By dodzy in forum C Programming
    Replies: 16
    Last Post: 05-17-2006, 04:57 PM
  3. Directx unnecessary complicated
    By SAMSAM in forum Game Programming
    Replies: 5
    Last Post: 01-21-2003, 09:10 PM
  4. Slightly complicated array&memory questions
    By Boksha in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2002, 11:35 AM
  5. The Most Complicated program
    By Prodigy in forum C++ Programming
    Replies: 5
    Last Post: 05-04-2002, 05:17 PM