Getting edit control buttons to work on MobilePostIt is not hard, but I wanted to implement some “fancy” designer support such that once the button control is implemented, I can just drag-drop the button in place and configure them via the properties pane. [Continue Reading]
The next little feature I want to add to MobilePostIt is editing shortcuts, similar to the ones in Wordpress. I classify these buttons into two categories, one that pops up a dialog box, e.g. “img” and “link”, and the other that surrounds selected text with open and close tags. I started working on the second type first.
I am calling my button type the “OpenCloseTagButton”. I thought about creating an user control but chose to derive it from System.Windows.Forms.Button instead.
Since I am working on MobilePostIt for the sake of fun, I decided to add a little Visual Studio 2005 design time support so I can use the designer to configure the controls. For this aspect I found three nice tutorials:
At first I made a mistake of not exposing getters on the class properties, so for a while properties just wouldn’t show up in the designer. I finally fixed that by trial and error. I guess that’s enough progress for tonight. ![]()
More than a year ago I asked myself which version control software I should use at home. I then more or less decided to go with Subversion. Unfortunately all was moot as I never put it into action.
That is until today. I just installed Subversion and TortoiseSVN (minus the Apache part) on my over burdened laptop. I wouldn’t have done it if not for two reasons:
It’s been 6 months since I last worked on my little pet project MobilePostIt. After my comments on Pocket PC Thoughts, I am now putting it up as a >>free download<<. [Continue Reading]
This is just a Chinese test post using my MobilePostIt program:
大家好吗?
我现正坐在新加坡世界贸易中心的麦当劳里用它提供的免费无线网络上网.
中文输入是通过 CE-Star 2.8.
One of the things I had wanted to do for my MobilePostIt project was to use .NET 2.0’s setting management to store blog settings. Right now I use file IOs to access a binary file. Using .NET’s setting management is not that useful of an enhancement, but it would result in less code in the application and more API experience for myself. Unfortunately I never got to it as I couldn’t find any quick examples and also other bigger bugs got in the way.
Then last Friday a colleague (thank you, if you are reading) gave me the Feb. 14, 2006 issue of MSDN Magazine. While flipping through it during lunch today, I found an article about Visual Studio 2005 enhancements and a section on Improved Settings Management. My curiousity about setting managment is fulfilled.
To access an user-scoped setting, in C#:
string myUserSetting = Properties.Settings.Default.MyUserSetting; Properties.Settings.Default.MyUserSetting = "myNewUserSettingValue";
To save the settings, again in C#:
Properties.Settings.Default.Save ();
Simple enough. These APIs are almost the same as those for resource management, which I had jammed into v1 beta.
[update @ 2006-02-11 00:00] Well, looks like this setting management doesn’t apply to the .NET 2.0 compact framework afterall.
I just noticed that Wordpress 2.0.1 has been released and that it fixed some of the XML-RPC bugs I have mentioned, bugs such as stripping of CSS in <div> and stripping of <!–– more ––>.
WP 2.0.1 bug fix list is here.
The 3 XML-RPC fixes are mentioned here.