160 likes | 307 Views
Components. Chris North cs3724: HCI. Presentations. taylor mitchell chris henry Vote: UI Hall of Fame/Shame?. Quiz. Fill in the blank: Users tasks are ___technology_____-free. Why do you need a repaint procedure? Window rearranging causes erasing
E N D
Components Chris North cs3724: HCI
Presentations • taylor mitchell • chris henry • Vote: UI Hall of Fame/Shame?
Quiz • Fill in the blank: Users tasks are ___technology_____-free. • Why do you need a repaint procedure? • Window rearranging causes erasing • Must be prepared to repaint at any time
Code Customized by editing code Language dependent Compiled binary Often UI focused Customize by methods, properties Events Portable, language independent Market-able! Object-oriented vs. Component-oriented
Technologies • Microsoft • dll • OLE • ActiveX / COM (component object model) • .Net • Java • JavaBeans
2 Types of ActiveX Components • ActiveX Controls • Widgets that can go on a form • *.ocx, *.oca • ActiveX Executables / dll’s • Independent programs that can be controlled • “OLE Automation” • *.exe, *.dll, *.tlb
Controls in VB • Project | components | controls • E.g. a webbrowser control
ActiveX Exe in VB • Project | references • E.g. controlling IE
Creating controls • VB: “user control” project
Databases • Tables • Fields = Columns = attributes • Records = Rows = items • Values = Cells • Queries
Database Components • Microsoft: ODBC • DAO (data access objects) • Old style, more complete • ADO (ActiveX data objects) • New style, less complete
ADO Components • Data connection • “DSN=MS Access 97 Database;DBQ=c:\states.mdb;” • Recordset • Contains 1 row at a time • Fields
ADO in VB • Data connector • Data widgets • Accessing data
Next • Project 1 due feb 7 (1 week) Presentations: • Next Tues: john charonko, jaime spicciati • Next Thurs: terrence witt, mohamed hassoun