Copyrighted Material
Total Page:16
File Type:pdf, Size:1020Kb
Index COPYRIGHTED MATERIAL bbindex.inddindex.indd 336565 111/1/071/1/07 55:18:09:18:09 PPMM bbindex.inddindex.indd 336666 111/1/071/1/07 55:18:10:18:10 PPMM Index A C adapters, .NETgadget. See .NET gadget CAB file for gadgets adapter component creating, 138–139 Add Project Output Group window, 353 signing, 139–142 AddConstructorParam method, 105 Cabinet Tool (cabarc.exe ), 138–139 AddContent( ) method, 223, 238 CameraClient Windows application AddContextMenu( ) subroutine, 336 (Surveillance project) AddGlanceContent( ) method, 222, 237, creating, 326–333 244 creating shortcut to, 355 AllDevicesRemoved event, 287–289, 363 modifying, 334–341 applications (gadgets), Windows SideShow, packaging, 347–351 195–196 CameraClientSetup project architecture, Windows SideShow, 204–205 adding custom actions, Asus W5Fe notebook, 186 356–358 Auxiliary Display. See Windows SideShow adding files, 352–354 AuxiliaryDisplayApi.dll setting properties, 351–352 COM component, 205 user programs menu shortcut, 355 native AP I, 211 CameraServer Windows application, AVICap class, 309 308–315 Certificate Authorities, 139 Certificate Creation Tool (makecert.exe), 139 CheckBox control, 326 B CheckedChanged event, 338–339 beep( ) method (System.Sound object), chooseFile( ) method (System. Shell), 85 100 chooseFolder( ) method (System. Shell), bg (background) attribute, 258 86 <body> element (SCF), 247–249 clearInterval( ) method, 149 <br> element (SCF), 252–254 clearTimeout( ) method, 149 Brinks, Tyler, 103, 111 client/server (Surveillance project) <btn> element (SCF), 259–262 communications, 318–325 buttons testing, 333–334 Button control, 326 close( ) method, 70 virtual, 259–262 <clr> element (SCF), 254–255 bbindex.inddindex.indd 336767 111/1/071/1/07 55:18:10:18:10 PPMM code listings code listings pages, defined (SCF), 245 APIs-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 <btn> element (SCF), 259–260 copyHere( ) method (System.Shell <clr> element (SCF), 254 .Folder), 91 <dialog> 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 <img> element (SCF), 256–257 <menu> and <item> 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 (<menu> 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 <txt> and <em> 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 <content> 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 336868 111/1/071/1/07 55:18:10:18:10 PPMM 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 <dialog> 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 <div> 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 <em> element (SCF), 249–252 basics, 40–46 email 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 336969 111/1/071/1/07 55:18:10:18:10 PPMM 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 Bluetooth-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 Wireless Digital Picture Frame, overview, 151–153 189–190 Virtual Earth gadget modification, Windows Mobile 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 <icon> 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 <img> element (SCF), 256–259 glance data saving video 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 337070 111/1/071/1/07 55:18:11:18:11 PPMM 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, Microsoft Virtual Earth (VE) gadget, 129–130 29–30 latitude/longitude settings (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 <br> element (SCF) Internet Explorer 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 <item> 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 <menu> 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 337171 111/1/071/1/07 55:18:11:18:11