Re: Lightweight visual control
- From: "Frank Hileman" <frankhil@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 30 Jul 2007 14:41:56 -0700
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
.
- References:
- Lightweight visual control
- From: Mike D Sutton
- Lightweight visual control
- Prev by Date: Set Default Values in DataGridView - Repost
- Next by Date: Need help in Rich text box control
- Previous by thread: Re: Lightweight visual control
- Next by thread: Datagridview readonly property changes the readonly property of its columns?
- Index(es):
Relevant Pages
|