dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[DotGNU]Winforms controls background


From: Simon Guindon
Subject: [DotGNU]Winforms controls background
Date: Wed, 16 Jul 2003 23:15:21 -0400

Ok so I'm writing this demo app, hoping to show off PNET a little bit.
Basically if anyone has seen the Windows Longhorn screenshots, where
they have that panel on the side that supports plugins, I'm doing
something similar to that.

As I'm doing this I'm uncovering weird things.  One is say my form's
background is a blue color.  Some of the controls added, do inherit the
color from their parent, but some don't.  I think the ones that aren't,
are my own controls that inherit from UserControl.  Should we make it so
all controls added to another control if theres no BackColor specified,
take on the parents BackColor, or?

Another weird thing I'm hitting is the fonts again.  I know we talked
about it, but this is even further more confusing.  When I put bold on
the font, it gets smaller, when I take bold off again, its smaller but
non-bold, but way smaller than the original size.  Maybe the default
size for fonts is too big?

Oh another thing is I'm finding setting the Left property does not move
the form at all, but if I set the Location, it does move, but not if I
set it in an event.

Currently plugins are working in this app and loading in PNET, yay! And
things are going pretty well :) One other question I do have, is I'm
building a panel that does system stats, so obviously I can't use the
same methods to collect stats on windows as I can on linux, so is there
a way for me to check in runtime the platform its running on, and decide
accordingly?  If that's not possible, I'll have to make plugins for
linux, and ones for windows.

One thing that I do need is no border on this window so it can dock like
a "panel" to the side of the screen.  Rhys mentioned something about
issueing a motif command, but not all window managers support it.
Anyone have any ideas?  This isn't something important right now, I can
develop this app no prob with a border for now.

I just thought I would mention some of the things popping up as I try to
write a real world app.

Gopal wanted flashy demo's, so I'm hoping to bring flashy :)

Take care,
Simon

-----------------------------
Simon Guindon
Nureality Networks
www.nureality.ca



reply via email to

[Prev in Thread] Current Thread [Next in Thread]