Graeme 的个人资料Books and Libraries照片日志列表 工具 帮助

日志


2月10日

Customizing the Windows XP Start Menu

The Windows XP Start Menu is divided into left and right halves, plus a small section at the bottom containing buttons for "Log Off" and "Shut Down".  Here's how to change what appears in the menu.

Right-click (NOT left-click) on the Start Menu and select "Properties". You'll see a small window like the one shown below.  I'm assuming you haven't chosen the "Classic Start Menu" option -- here I'm discussing how to customize the first format, confusingly just called "Start Menu".

Click on the "Customize ..." button. This brings up another small window with two tabs: General and Advanced. (I've shown both tabs below.)

The General tab has a number of useful options. You can switch between small and large icons on the Start Menu -- I like small icons because I can put more things in the same space, but they are harder to see. You can change the number of programs the Start Menu remembers (a sort of automatic favorites list), and there's a button to clear the list. Since I use small icons and a large screen, I increase the default to 12. I'll have more to say about this list below. Finally, you can choose whether to show links to your web and email programs, and if so which one.

The Advanced tab really isn't more advanced; it just has more options. At the top there are two checkboxes for "Open submenus when I pause on them my mouse" and "Highlight newly installed programs". If you clear the "Open submenus" option, the "All Programs" menu, and the menus within it, won't open until you click your mouse. It's up to you to decide which option you prefer.

In the middle there's an area labelled "Start menu items:" which allows you to control what's shown in the right-hand side of the Start Menu. You can show or not show My Computer, My Document, My Music, My Network Places, Printers and Faxes and so on. There's one small complexity: for some of the items, you can choose whether to show them as a "link" or a "menu". A link means that when you click on it, you'll open up a new window; a menu means that the choices will appear as a submenu off the Start Menu. Again it's up to you to decide which option you prefer.

At the bottom, there's a checkbox to control whether the menu includes a list of your most recently opened documents and a button to clear the list.

One more trick

There's one more thing you can do to customize what appears on the right-hand side of the Start Menu. In addition to your email and web browser, if you've chosen to display them, you can "pin" items to the menu so they always appear. To do this, right-click on an item that's already on the right-hand side of the Start Menu. One of the entries in the right-click menu is "Pin to Start Menu". Once you've done this, the menu entry will change to "Unpin from Start Menu" so you can reverse the process. Another neat item on the right-click menu is "Send To" from which you can choose "Desktop (create shortcut)".

These two items (Pin to Start Menu and Send To) also appear if you click on a program or shortcut to a program anywhere else on your desktop or in a folder.

1月21日

When you insert a CD into a CD drive ...

Windows XP actually has a nice feature for controlling what happens when you insert a CD into your CD (or DVD) drive. The problem is, it's hidden ...

Open up My Computer by double-clicking on the desktop icon or selecting it in the Start Menu. You should see the drives that are visible from your computer; depending on your configuration that could include sections for hard disk drives, "drives with removable storage" and network drives. In this context, CD and DVD drives count as "drives with removable storage".

Right click on your CD or DVD drive (if you have more than one you have to repeat this process with each of them). Select 'Properties' at the bottom of the menu.

That will open a dialog box with a number of tabs along the top. Select 'Autoplay'.  You can see a picture at the bottom of this post showing what the dialog box should look like (double-click to enlarge it!).

Here, you set the action you want for each of the types of CD given in the pull-down menu, shown as "Music files" in the picture. (In its roundabout way, Windows describes a music CD as a CD with music files on it. "Mixed content" refers to a music CD with other "bonus material" on it.)

For each type of CD, you have two choices for what happens when you insert a CD into the CD drive:  you can have Windows perform an action automatically, or you can have Windows pop-up a dialog box which lets you choose every time.  To have Windows act automatically, select the first radio button ("Select an action to perform:") and click on the choice you want from the list below the radio button.  To have Windows ask you every time, select the second radio button ("Prompt me each time to choose an action").

Note that "Take no action" (i.e., do nothing!) is always one of the automatic actions you can choose if you select the first radio button.  You might not see it because it's always the last choice in the list.  It's also always one of the choices that Windows offers you when you insert the CD, if you choose the second radio button, but again you might not see it because it's last in the list.

You have to set up each kind of CD separately, including blank CDs, by going through each item in the pull-down menu.  If you like writing files and folders to blank CDs using the drag and drop mechanism now built in to Windows XP, the choice you want is "Open writable CD folder using Windows Explorer".  You can have Windows make this choice automatically when you insert a blank CD, or choose it from the dialog box that opens -- the effect is the same either way.

1月16日

Combining data from multiple rows in Access

Suppose you have a table (or query) in Access with three columns:

LName - the last name of a sales person
Amount - the dollar amount of a sale by the sales person
Region - saleperson's region (South, West, ...)

How do you figure out the total sales for each sales person?  You need to combine (in this case add) the data from multiple rows.  The answer is to use GROUP BY.  To see how this works, imagine a table that looks like this:

LName             Amount       Region
Smith              $1,000.00         NE
Jones                $500.00           S
Smith                $200.00         NE
Edwards            $750.00         W
Jones               $250.00           S

You can see that the table can contain several amounts for a given salesperson - our task is to add them up to get the total amount for each salesperson.  First, start the query designer in Access by double-clicking on "Create query in Design view".

The first thing to do in the query designer is to add to the query the table you want to get the results from.  You can base this query on another query; in fact in Access it can be simpler to build up a complicated query in several steps, by using one query in another.

We'll end up using all three fields, so drag them all into the query.

We're going to build a query using GROUP BY.  The problem is that this feature is not visible in a normal query.  Go to the View Menu and select "Totals" (or "Show totals", depending on your version of Access).  A new row named 'Total' will appear in the bottom half of the query.

There are two main types of fields for a group by query:  the field or fields that IDENTIFY WHICH rows to combine, and the fields or fields whose values we want to COMBINE.  In our case, we want to combine all the rows from a given salesperson (which means using the LName field), and add together the sales amounts (which means using the Amount field).  The way we do this in Access is using the Totals row.  In the LName column of the query, set the Total row to 'Group By'.  In the Amount column, set the Total row to Sum.

But what do we do with the remaining field, 'Region'?  We hardly want to add these together.  We combined all the rows for a given salesperson together, but for a given salesperson the value of the Region field will be the same -- we can use any row we like in our result.  There's no way to say 'any' in Access, but we can get the same effect by setting the Total row of the Region column to 'First'.

Save the query and see how it works!

1月6日

Turn a still into a movie with Photo Story 3

Microsoft's Vladimir Rovinsky has an article on using Photo Story 3. You can take a single photo and turn it into a movie by panning across it.  Neat!

I should see if I can find some time to install Photo Story 3 on one of my many Windows systems.