N
Neil Kiser
I'm trying to understand what defining a class as 'static' does for
me.
Here's an example, because maybe I am thinking about this all wrong:
My app will allows the user to control the fonts that the app uses.
So I will need to change the fonts depending on what settings the user
has entered. However, it seems kind of wasteful to me to go to teh
registry, fetch the font information and create new font objects for
every form that I am going to display. So I was thinking that perhaps
the 'static' keyword held my salvation somehow. I'd like to have a
clas that reads from the registry, creates the fonts, and then they
are there for any of the forms to reference.
Any comments on that would be greatly appreciated.
Thanks,
-Neil K.
me.
Here's an example, because maybe I am thinking about this all wrong:
My app will allows the user to control the fonts that the app uses.
So I will need to change the fonts depending on what settings the user
has entered. However, it seems kind of wasteful to me to go to teh
registry, fetch the font information and create new font objects for
every form that I am going to display. So I was thinking that perhaps
the 'static' keyword held my salvation somehow. I'd like to have a
clas that reads from the registry, creates the fonts, and then they
are there for any of the forms to reference.
Any comments on that would be greatly appreciated.
Thanks,
-Neil K.