Upload
sydney-anthony
View
215
Download
0
Embed Size (px)
Citation preview
Welcome!
Welcome!
Agenda – Thursday AMUsing Table WidgetsDrag & DropHTML Editor/ViewerWeb ServicesNew GUI EventsOther useful API’s
Using Table Widgets
True scrolling tableUser can sort/rearrange/resize (process)Based on new process type “Table Resource”
Has a PCFHas SOP, EOP, Post PCF Read EPSeq No controls initial order of columnsWidth controls initial width, can also mask data
Using Table WidgetsUses Col Headings in DD for table headings
Paint on image using new tool.Displays pseudo textCan set font size, type, colour, background colourWidget scrolls horizontally/vertically
Using Table WidgetsAt Runtime:
Can have multiple table widgets at onceCan set options for single click/double clickCan determine which row(s) the user selectedCan retrieve the PCF key of the selected row(s)Use --- INCLUDE/SELECT RECORD to include or pre-select a record/row.
Using Table WidgetsAt Runtime:
Tables are reloaded after Pre-Display Event Point executes.Can control via --- WIDGET RELOAD DATASRC field and --- .WIDGET RELOAD DATASRC API.
Using Table WidgetsLimitations:
Read only, change/add/delete not allowedPerformance, ie, may be too slow to load with 10,000 records. Use memory file instead.Data sharing is one way (implied Separate Task flag)Currently can’t mask numeric fields
Drag & DropWe can designate certain widget types as ‘drop’ targets.Allows user to drag and drop a file, folder or Email (Outlook, Thunderbird supported)Drop spec allows File, Folder, Tree, Any
Drag & DropAt Runtime:
User can drag object over drop area, target is highlighted to indicate drop allowed.If not valid, message ‘No Valid Items Dropped’--- OPTION is set to DROP, and files DROPINFO and DROPPROP populated.If Email dropped, email is copied to ‘dropCachePath’ location. Designer responsibility to manage them.
New Widget TypesThere are 5 new widget types for TEXT fields:
WEB BROWSER – full featured web browserCODE VIEWER – display code with highlightsHTML EDITOR – display/edit HTMLFLASH PLAYER – play Flash FilesMEDIA PLAYER – play supported media files
New Widget TypesWeb Browser has option to show ‘decorations’ or not.HTML editor can enter/save text in HTML format. Can be displayed via HTML Viewer control.
Editor can be customizedTo play Flash files, Flash must be installed on desktop
New Widget TypesTo play media files on non Windows desktops requires VLC from http://www.videolan.org/vlc
Using Web ServicesA new feature of the .STREAM routines is the ability to open a URL as a file.Pass the URL as file name, then you can read the results using .STREAM READThere are free web services at http://www.webservicex.net/ws/wscatlist.aspx
New GUI EventsYour process can be notified when the user Tabs into, Tabs out of, or changes a value.Allows screens to be much more interactive.Set on a field by field basis--- OPTION is set to TAB IN, TAB OUT, or VALUE CHANGED
New GUI Events--- CURSOR AT FIELD contains the field name.Only Option Intercept is executed (unless you change the value of --- OPTION).VALUE CHANGED triggered when user Tabs out or timer expires (valueChangedTimer)One keystroke could trigger all three events.
Mystery/Bonus TopicsUsing Table Widgets and API to generate code, we can finally write a good general purpose import!New values for --- OPTION
RESCROLLKEY ENTRYLOGOUT
Mystery/Bonus TopicsNew Appx Environment Variables.
APPX_SMART_ILFAPPX_WARN_REG_DAYS
New Resource Type ‘FONT’Replaces ‘ROLLOVER SELECTED’ for custom fonts.