Re: Creating a visual object



You need a retained mode graphics system which you can then use to create simple elements such as Rectangle etc which persist information and which you can use to build up useful classes of shapes and functions. An example is availabel at www.bobpowell.net.

Or you may just want to draw onto bitmaps using the graphics.Drawxx functions

James

Ant wrote:
Hi, I don't know if this is the right thread. I'm actually working on a simple graph tool seeing as though .NET doesn't come with one.

I have a control which I want to add bar objects to. I need the bar objects to have certain properties like height, width, colour etc. Sounds like a rectangle to me.

I thought of inheriting the rectangle class but it seems this is only a class that holds values, not a visual representation.

How can I create a rectangle? Must I use a control template to do this?

Completely lost...

Thanks for any ideas.

Ant
.



Relevant Pages

  • Re: Creating a visual object
    ... I have a control which I want to add bar objects to. ... rectangle to me. ... I thought of inheriting the rectangle class but it seems this is only a ...
    (microsoft.public.dotnet.framework.drawing)
  • Why one of the reasons to say that a design is bad is about deployment???
    ... The Rectangle class has two methods shown. ... It never draws the rectangle on the ... some computational geometry, but it definitely draws the rectangle on ...
    (comp.lang.java.programmer)
  • Re: RECT - Rectangle
    ... It seems at first glance that the Rectangle class ... >>I have a question regarding the RECT structure required for PInvoke calls. ... I would create the RECT structure definition ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: method to access the name of the object that got created.
    ... If R1 is a object of Rectangle class with width 20, on calling ... "R1Is having a width of 20" ...
    (comp.lang.java.programmer)
  • Create custom rectangle UI Element
    ... I want to create a custom UI element which will be a custom rectangle object ... I'm new to XAML and c# as most of my experience ... fancy shapes so I'll just start with a rectangle class where I can add ...
    (microsoft.public.dotnet.general)