c/c++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TALHA914
    New Member
    • Feb 2008
    • 1

    c/c++

    PROJECT NO: 1

    Project Title: Drawing Application

    Project:

    Develop a windows based drawing application. This application is used for drawing different primitive figures with different colors, brushes, x coordinate, y coordinate and other different attributes. This application must have the ability to draw text in different colors, size and font style. The application must have the options to make the text bold, italicized and underline.


    The application must contain five drop down menus.
    “Draw Figures”, “Brush Type”, “Brush Color”, “Font” and “Exit”.






    Draw Figures:

    “Draw Figures” drop down menu must have at least five sub menus to draw different primitive shapes.
    The drop down menus may be Rectangle, Square, Circle, Polygon, Circle and so on. Whenever user clicks on one of the sub menu then corresponding figures must be drawn.

    Whenever user clicks on one of the sub menu of “Draw Figure” and user has not selected any brush type, brush color and font then it must display a message box or dialog box. This message box or dialog box must display a message that
    “You have not selected brush type or brush color or font! Are you sure, you wanted to draw figure and text with default brush, color and font”.

    When user clicks on the one of the sub menu of “draw figure”, then application must display edit boxes and one button named “Draw”.
    The edit boxes may be vary depending on the type of the figure. However there must be two edit boxes “x Coordinate” and “y Coordinate” for every figure.
    For example, if user wanted to draw a rectangle, then application must display four edit boxes named, “x coordinate”, “y coordinate”, “height” and “width”.

    When user clicks on “Draw” button then selected figure must be drawn. At the top of the figure text must be displayed depending on the type of figure. For example, when a circle is drawn then text must be “Circle”. The text must be displayed using selected font size, color and style.











    Brush Type:

    “Brush Type” drop down menu must have at least five sub menus to select different brush to draw figure.
    Brush may be Cross-hatched, Vertical, horizontal and so on.
    Whenever user clicks on one of the sub menu then corresponding brush must be selected.

















    Brush Color:

    “Brush Color” drop down menu must have at least 5 sub menus to select different brush colors to draw figure.
    Whenever user clicks on one of the sub menu then corresponding brush color must be selected.




















    Font:

    “Font” drop down menu must have 3 popup menus and 3 sub menus.
    Three sub menus are Bold, Italic and Underline.
    Three popup sub menus are Size, Font Style and, Color.





    Size:

    “Size” popup menu must have at least 5 sub menus. The basic purpose of this menu is to select the size of text. Whenever a user clicks on any sizes then text will be displayed with selected size.

    Font Style:

    “Font Style” popup menu must have at least 5 sub menus. The basic purpose of this menu is to select the different font face of text. For example, font face can be “Arial”,”Times New Roman“, “Verdana”and so on. Whenever a user clicks on any style then text will be displayed with selected font face.




    Color:

    “Color” drop down menu must have at least 5 sub menus to select different colors to draw figure.
    Whenever user clicks on one of the sub menu then corresponding color must be selected

    Bold:

    When user clicks on “Bold” sub menu of “Font” menu then text must be displayed bold.

    Italic:

    When user clicks on “Italic” sub menu of “Font” menu then text must be italicized.

    Underline:

    When user clicks on “Underline” sub menu of “Font” menu then text must be underlined.







    Exit:

    The Exit menu must have one sub menu “Exit”. When user clicks on “Exit” sub menu then application must terminate.

    When user clicks on the “Close” button of the application, then it must display a message box containing text “Thanking for using this application”.

    Note:
    All the above screenshots provide you with the basic idea of “Drawing” application. These screenshots merely provide you interface of application. These screenshots does not show you the functionality of the application. You will have to implement its functionality according to the description given above.
    Your application must display an appropriate icon on the title bar.
  • Ganon11
    Recognized Expert Specialist
    • Oct 2006
    • 3651

    #2
    The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

    Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.

    Then when you are ready post a new question in this thread.

    MODERATOR

    Comment

    Working...