Index

COPYRIGHTED MATERIAL

bbindex.inddindex.indd 365365 111/1/071/1/07 55:18:09:18:09 PPMM bbindex.inddindex.indd 366366 111/1/071/1/07 5:18:105:18:10 PMPM bbindex.indd 367 i n d e x . i n d d

3 6 7 AVICap class, 309 AuxiliaryDisplayApi.dll Auxiliary Display.Auxiliary Asus W5Fe notebook, 186 architecture, WindowsSideShow, 204–205 applications (gadgets), WindowsSideShow, AllDevicesRemoved event, 287–289, 363 AddGlanceContent( )method, 222, 237, AddContextMenu( )subroutine, 336 AddContent( )method, 223, 238 AddConstructorParam method, 105 Add ProjectOutputGroupwindow, 353 buttons element(SCF), 259–262 Brinks, Tyler, 103, 111
element(SCF), 252–254 element(SCF), 247–249 bg (background)attribute, 258 beep( )method(System.Soundobject), B adapters, .NETgadget. A native API, 211 COM component, 205 virtual, 259–262 Button control, 326 195–196 244 adapter component 100 See WindowsSideShow See .NETgadget element(SCF), 254–255 close( )method, 70 project) (Surveillance client/ )method,clearTimeout( 149 )method,clearInterval( 149 chooseFolder( )method(System.Shell), )method(System.Shell),chooseFile( 85 CheckedChanged event, 338–339 CheckBox control, 326 CreationToolCertificate (makecert.exe), Authorities,Certificate 139 Windowsapplication,CameraServer CameraClientSetup project CameraClient Windowsapplication Cabinet Tool (cabarc.exe), 138–139 CAB fileforgadgets C testing, 333–334 communications, 318–325 user programsmenushortcut,355 setting properties,351–352 adding files, 352–354 adding customactions, packaging, 347–351 modifying, 334–341 to,creating shortcut 355 creating, 326–333 signing, 139–142 creating, 138–139 86 139 308–315 356–358 project) (Surveillance 111/1/07 5:18:10 PM 1 / 1 / 0 7

5 : 1 8 : 1

0 Index

P M code listings

code listings pages, defined (SCF), 245 -DragDrop.html, 88–89 sending to SideShow devices, APIs-Flyout.html, 72–75 237–238, 248 APIs-Network.html, 83–84 XML to SideShow devices, 251 APIs-Power.html, 79–80 ContextMenuSelect event, 300–303 APIs-Gadgets.html, 67–69 ContextMenuStrip control, 342 element (SCF), 259–260 copyHere( ) method (System.Shell element (SCF), 254 .Folder), 91

element (SCF), 263 credentials information, 333 GadgetAdapter.cs, 107–110 CSS (Cascading Style Sheets) GadgetInterop.js, 111–117 files for gadget styles, 19 gadget.xml, 119, 122 gadget files, organizing, 47 gadget.xml (in zh - CN), 131 currency symbols, foreign, 137 GeoTag.html, 170–172, 177 custom installer, creating (Surveillance GeoTag.js, 172–173, 178–179 project), 347–351 GPS tracker, building, 154–162 customizing Windows Sidebar, 8–9 element (SCF), 256–257 and elements (SCF), 265 .NET component for geo-tracking, 165–168 D PostIt Class Library project, 117–118 Dashboard resource.js (in SystemMonitor displaying in Virtual Earth, 38 .gadget\js), 136 Mac OS X, 5–6 selectaction attribute ( data element), 269 DataReceived event (GPS tracker), 157 SystemMonitor.html, 123–125, sending to SideShow devices, 135–136 220–224, 247 SystemMonitor.html (in zh - CN), debugging 131–133 attaching debugger to Sidebar, 60–61 TestInterop.html, 119–120 Debug object, 59–62 and elements (SCF), 249 and diagnostics objects, 59–63 VirtualEarth.html, 175–176 deploying/signing Sidebar gadget VirtualEarth.js, 169–170, 174–175, (example) 179–180 CAB file, creating, 138–139 Columns gadget, 197 CAB file, signing, 139–142 contacts objects, 58–59 certificate, creating, 139 content installing gadget, 142–143 element (SCF), 247–249 overview, 137 ContentMissing event, 298–300 Visual Studio 2005 command ContentNavigate event, 295–297 prompt, 138 ID (SCF), 248 DeviceAdded event, 284–287

368

bbindex.inddindex.indd 368368 111/1/071/1/07 5:18:105:18:10 PMPM FormClosing event Index DeviceCapabilities object, 279, 286 Environment object, 63–65 DeviceRemoved event, 287–289 environment variables, 64 devices, SideShow-enabled event handling (SideShow devices) adding to SideShow gadgets, AllDevicesRemoved event, 287–289 284–287 ContentMissing event, 298–300 disconnecting from SideShow ContentNavigate event, 295–297 gadgets, 363 ContextMenuSelect event, 300–303 limitations of, 186 DeviceAdded event, 284–287 removing from SideShow gadgets, DeviceRemoved event, 287–289 287–289 GadgetEnter event, 289–290 types of, 186–192 GadgetExit event, 290–291 diagnostics/debugging objects, 59–63 MenuSelect event, 291–295

element (SCF), 262–265 overview, 282–283 dialog pages, defined (SCF), 246 events Digital Signature Wizard, 140–143 of System.Gadget object, 65 display module SideShow devices, of System.Gadget.Flyout object, 72 187–189 of System.Gadget.SideShow object, 121 distributing Sidebar gadgets, 54–55 of System.Machine.PowerStatus
element object, 78 HTML, 26 of System.Network.Wireless SCF, 272–273 object, 83 docking/undocking of System.Shell.RecycleBin object, 97 Docked gadgets, 13 execute( ) method (System. Shell), 87 DockState( ) function, 32 extensions, .gadget, 16 Sidebar gadgets, 30–33 ExtractFeed( ) function, 228–230 downloading RSS feeds (RSS Aggregator), 228–233 drive( ) method (System. Shell), 87 Drive object, 98–99 F files/folders Folder object, 90–92 manipulating from Sidebar gadgets. See System Shell objects E organizing gadget, 47–54 e.DeviceCapabilities.GetDeviceId flyout feature (Sidebar gadgets) property, 338 adding to geo-tracking gadget, 169–172 element (SCF), 249–252 basics, 40–46 Flyout object, 72–75 access objects, 80–82 folders/files. See files/folders on SideShow-enabled devices, 186 Follesoe, Jonas, 104 endTransition( ) methods, 70 FormClosing event, 345

369

bbindex.inddindex.indd 369369 111/1/071/1/07 5:18:105:18:10 PMPM Gadget Adapter class interface

GPS tracker G building, 153–162 Gadget Adapter class interface, 104 testing, 163–164 gadget APIs. See Sidebar gadget APIs GPS.Logger class, 168, 180 Gadget Corner, 149 GUID (Globally Unique Identifier), creating gadget_ContextMenuSelect( ) event (RSS Aggregator), 215–216 handler, 337 GadgetEnter event, 289–290 GadgetExit event, 290–291 Gadget.Interop example. See .NET gadget adapter component H GadgetInterop.js JavaScript library, 111 Hanselman, Scott, 130 GadgetRegistration class, 239–242 hiding Windows Sidebar, 10 gadgets Hive Multi-Gadget, 11 Gadgets Gallery, 13–14, 16–17 Holux GPSlim 236 -enabled GPS gadget.xml file, creating, 27–28 receiver, 163 gadget.xml file, structure of, 19–20 HTML (Hypertext Markup Language) online/offline, 208 files for gadget UI, 19 SideShow. See SideShow gadgets Virtual Earth interface, 23–27 Geo-tracking/Tagging gadget project GeoTagFlyout( ) function, 169 GPS tracker, building, 153–162 GPS tracker, testing, 163–164 implementing geo-tagging, 177–180 I implementing geo-tracking, 172–176 i-Mate .NET component, creating, 164–168 Momento Digital Picture Frame, overview, 151–153 189–190 Virtual Earth gadget modification, 6 phone, 168–172 190, 192 Get More Gadgets Online link, icons 201–202 displaying gadget (RSS Aggregator), GetCapabilitiesForDevices property, 279 226–227 GetDeviceCount property, 279 element, 28 getEnvironmentVariable( ) method, ID, content (SCF), 248 64–65 IGadgetInterop interface, GetGadgetPath( ) function, 104–105 348–351 images getGPSLogFile( ) function, 173 adding to RSSGadget, 224–226 getPhoto( ) function, 179 Image variable, 317–318, 323 GetPosts( ) subroutine, 230–231 element (SCF), 256–259 glance data saving as (Surveillance project), defined, 222 315–318 sending to SideShow devices, sending to SideShow-enabled devices, 242–245 127–128, 334–341

370

bbindex.inddindex.indd 370370 111/1/071/1/07 5:18:115:18:11 PMPM MessageStore object Index installing installer, custom (Surveillance project), L 347–351 Label control, 326 Installer_AfterInstall( ) subroutine, language localization, 128–137 348–351 language packs, downloading/installing, Virtual Earth (VE) gadget, 129–130 29–30 latitude/longitude (GPS SideShow gadgets, 201–204 tracker), 164 signed gadgets, 142–143 launching testing installation (Surveillance project), SideShow Simulator, 192–193 358–362 Windows Sidebar, 8 instances, multiple gadget, 17 line breaks. See
element (SCF) LineFeed (LF) characters, 323 host to Sidebar gadgets, 23–24, 27 Listen( ) subroutine, 324 testing user interface with, 146–147 listings, code. See code listings Internet Explorer Developer Toolbar, Live Clock, 11 146–147 Live (Web) gadgets, 11 invokeVerb( ) method (System.Shell.Item LoadSettings( ) function, 36 object), 94 LoadTypeWithParams( ) method, 105 element (SCF), 265–272 localizing Sidebar gadgets, 128–137 Item object (files, folders, shortcuts), 93–95 itemFromPath( ) method (System. Shell), 89 M machine information objects, 76–80 Make Single Instance Application checkbox, 345–346 J makecert.exe tool, 139 Managed SideShow gadget applications, JavaScript 205 gadget files, 19, 47 Map control, Virtual Earth, 23–24 gadgets callable from, 57 maps, world. See Virtual Earth (VE) registering .NET gadget adapter with, gadget 111–117

element (SCF), 265–272 menu pages, defined (SCF), 246 menus adding images to (RSS Aggregator), K 234–236 ContextMenuSelect event, 300–303 keyboard shortcuts, Windows Sidebar, 12 creating shortcut in user programs, 355 keys, Registry, 275–278 MenuSelect event, 291–295 knownFolder( ) method (System. Shell), selecting items on, 291–295 89–90 Me.Show( ) statement, 340 Konfabulator, Yahoo!, 5–6 MessageStore object, 80–81

371

bbindex.inddindex.indd 371371 111/1/071/1/07 5:18:115:18:11 PMPM MessageStoreFolder object

MessageStoreFolder object, 81–82 Interop. See .NET gadget adapter MessageStoreMessage object, component 81–82 Micro Framework, 197 metadata( ) method (System.Shell.Item .NET gadget adapter component object), 95 creating, 104–110 methods .Net code, creating, 117–118 of GPS.Logger class, 168 .Net library, calling (example), 118–120 of System.Gadget object, 66 overview, 103 of System.Gadget.Settings object, 75 registering with JavaScript, 111–117 of System.Gadget.SideShow object, 121 network access object, 82–84 of System.Shell object, 85 Network.Wireless object, 82–84 of System.Shell.Folder object, 91 notebook computer SideShow devices, of System.Shell.Item object, 94 186–187 of System.Sound object, 99–100 notifications of System.Time object, 100 NotifyIcon control, 342, 344–345 Microsoft Virtual Earth gadget. sending to SideShow-enabled devices, See Virtual Earth (VE) gadget 304–305 Microsoft.SideShow.dll wrapper class, 205 MinimizeWindow( ) subroutine, 343–344 SideShow devices, O 190–192 offline gadgets, defined, 208 Momento Wireless Digital Picture Frame online (i-Mate ), 189–190 gadgets, defined, 208 monitorMachine( ) function, 125, 148 getting gadgets, 14 moveFile( ) method (System.Shell OnlineOnly registry key, 208 .Folder), 92 OnPageLoad() function, 23 MSN Video, 11 Options page (Sidebar gadgets), 33–40 multiple gadget instances, 17 outputString( ) method (System.Debug), Mutex class, 345 59, 61–62

N P Native SideShow gadget applications, 205 pane, Sidebar, 6–7 .NET parameters creating component for geo-tracking params keyword (Scf.Txt( ) gadget, 164–168 method), 253 Framework Components 1.0, 211 Register( ) method, 241

372

bbindex.inddindex.indd 372372 111/1/071/1/07 5:18:115:18:11 PMPM rgb attribute Index persisting gadget settings, 149–150 Q PhotoLatLng( ) method, 168 querying picture frame SideShow devices, 189–190 capabilities of devices, 279–282 PictureBox control, 308–309, number of SideShow gadgets installed, 326–327 275–278 plotLocations( ) function, 173 Pocket PC GPS tracking application, 151–153 PreviewVideo( ) subroutine, 313, 325 processGPSData( ) subroutine R (GPS tracker), 159–162 ReadExisting( ) method (GPS programming Sidebar gadgets, 40–46 tracker), 159 properties ReadGPS( ) method, 168 of CameraClientSetup project, 351 readString( ) method, 76 of NotifyIcon, 344 ReceiveImage( ) function, 330, 340 of PictureBox control, 308, 327 ReceiveImageLoop( ) subroutine, 330 of System.Contact object, 58–59 ReceiveMessage( ) subroutine, of System.ContactManager object, 58 320–323 of System.Gadget object, 66 RecycleBin object, 96–98 of System.Gadget.Flyout object, 72 refreshing Sidebar gadgets, of System.Gadget.Settings.ClosingEvent 148–149 object, 71–72 Register( ) method, 217, 226–227, of System.Machine object, 77 239–242 of System.Machine.CPU object, 77 registering of System.Machine.PowerStatus RSS Aggregator, 216–219 object, 78 SideShow gadgets, 239–242 of System.MessageStoreFolder Registry object, 81 OnlineOnly key, 209 of System.Network.Wireless object, 82 querying installed SideShow gadgets, of System.Shell.Drive object, 98 275–278 of System.Shell.Folder object, 92 settings for SideShow gadgets, of System.Shell.Item object, 93 206–207 of System.Shell.RecycleBin object, 96 StartCommand key, 209 of System.Time object, 100 remote control SideShow devices, 190 of System.Time.TimeZone object, 101 RemoveContextMenu( ) subroutine, 337 of Timer control, 317 RestoreWindow( ) subroutine, Push Data button (RSS Aggregator), 343–344 220–221, 224, 231–232, 234–236 Reversi gadget, 197 PushPinFlyout( ) function, 41 RevokeNotification( ) method, 305 pushpins, adding to VE map, 40–46 rgb attribute, 250

373

bbindex.inddindex.indd 373373 111/1/071/1/07 5:18:125:18:12 PMPM Ricavision

Ricavision ScfSideShowGadget class, 237, SideShow Module, 189 279, 283 Windows SideShow remote control, Scf.Txt( ) method, 253 190–191 schema definitions RSS Aggregator Gadget project element (SCF), 248 adding images, 224–226
element (SCF), 254 creating new Windows application, element (SCF), 262 213–214 element (SCF), 255 displaying gadget icon, 226–227 element (SCF), 249 downloading RSS feeds,

element (SCF), 264–265 228–233
element (SCF), 273 GUID, creating, 215–216 element (SCF), 258–259 menu items, adding images to, element (SCF), 268 234–236 element (SCF), 267–268 overview, 211–212 element (SCF), 251–252 pushing data to SideShow device, ScreenDuo displays (Asus), 187–188 220–224 script debugging, enabling, 144–146 registering gadget, 216–219