ShowUsYour<Blog>
Irregular expressions regularly
-
Factoring in performance
I just finished reading an excellent piece by Paul Vick relating to the performance of code. I think that this is especially relevant now that I'm starting to write components and working on larger applications.
-
Only making Good mistakes helps :-)
After my last blog entry about the risks relating to juggling to much uncertaintly I stumbled upon ^Z's 1999 entry about making “Good Mistakes“. I think that there's something profound in there - for me especially! Thanks for that Mark :-)
-
Always try one new thing but not two.
I've got a software related creed that I've managed to adhere to for several years now and, in my opinion it has been largely responsible for keeping me out of harms way; it's a simple creed and it goes something like this:
-
ContextMenu - exposing and handling events
The ContextMenu is now code complete and I'm running through the code adding the appropriate Xml comment sections for when I produce the .chm file for the assembly. My aim is to have a Comment, Remark and Sample for each public member within the assembly.
-
ContextMenu - how the styles work (for now)
One other thing that I've not mentioned about the ContextMenu server control is how the styles are handled. Presently, and for the initial release of the control there will be classnames hard-coded into the control itself; they are:
-
ContextMenu - now working in browser.
I finally got all of the rendering logic finished and spent this morning working "in the client" on some positional bugs. Basically, I had the menu working fine until the user selected a menu which was at a position greater the 1 window height down the page. In other words, if the page was tall enough to require a scrollbar down the side, the positioning of the menu was screwy when you had to scroll down. I've fixed that though with a nice little hack :-) Basically, I wire-up a delegate to handle the mousedown event on the document like so:
-
Another minor alteration to my stylesheet
I mentioned the other day how I had made a change to my global css styles. Today I've hard-coded a width for PRE's and set the overflow:auto to prevent my code samples forcing the page wider. Now when I add wide snippets they should appear with scrollbars. The new definition is:
-
ContextMenu - working in the designer
I've now got the ContextMenu to emit all of the Javascript into the page as part of it's rendering process which is the first part of what I said needed to be done from yesterday. Here is the code in the ContextMenu class which is responsible for doing that:
-
New Msdn style
I travelled by http://msdn.microsoft.com/ today and noticed that the styles have changed. The site now has a much “lighter” feel to it; much more of a “stylesheet look” than an “images look” - if that makes sense :-)
-
Context Menu - building the classes
Well, it's been a great week inside the software dream ;-) as I've had the chance to work on something out of pure enjoyment - an ASP.NET Context Menu Server Control. I've been blogging my progress as I've had to tackle each part of the problem and, it's gone something like this: