Re: Lightweight visual control

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello Mike,

Each Windows.Forms.Control consumes a windows handle as well as lots of
other resources, and they don't handle transparency well. So there are
advantages to retained mode graphics systems, if you are talking about
single graphical objects that respond to mouse events. Look at the link in
my signature for an example.

Regards,
Frank Hileman

check out VG.net: http://www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio graphics editor

"Mike D Sutton" <EDais@xxxxxxxx> wrote in message
news:%23lnrOCh0HHA.4476@xxxxxxxxxxxxxxxxxxxxxxx
I'm developing some simple user-drawn graphical controls and looking for
the most efficient way of going about it.
Initially I had the default VS control project which derrived from
'UserControl' with all it's baggage. Having a look up the inheritance
tree it looks to me that this is designed to be a scrollable control
container by default which I did not require, and so inheriting from
'Control' instead worked just fine.
Having a look through the Control class (metadata) it seems that there are
a lot of properties which don't really apply to my control though, however
going up a level further to 'Component' looses some of the required
functionality (namely creating a window, painting and so on.)
Is the standard practice in this case to just use Control, or is there a
more appropriate base class to work from?
Cheers,

Mike



.



Relevant Pages

  • Re: Scale Transform - Why do I need to account for verticalResolution?
    ... To control the output on the pixel level you need to either be aware of the exact image resolution of the drawing surface and the image or specify the three factors mentioned above. ... the resolution of the Image and the Dpi of the graphics object my ... 1.Calculate Scaling Ratio ... largestRatio = Image.Width / width, ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Drawing to second monitor using Graphics and GetDC
    ... You can get the Hdc of a Graphics object. ... a control using CreateGraphics. ... Find great Windows Forms articles in Windows Forms Tips and Tricks ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Any tool for dinamically drawing graphics for windows forms...
    ... > I am looking for a tool that would allow me to dinamically draw graphics, ... > code or dlls´s into my project as a control. ... > my graphic designer develops a Frog shapped button... ... > will boost animation and graphics for windows development. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • RE: Capturing image of a hidden control
    ... and that this is a low level graphics functionality that the ... > With regards to having a .NET control paint itself onto a Graphics device ... code found can only capture a visible window. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Tomb Raider Legend Demo - and System Requirments!!!
    ... I can't believe the developers haven't sorted out the control issue after ... graphics and great gameplay do not necessarily go together... ... Dx8 or less games can be ...
    (comp.sys.ibm.pc.games.action)